Support

Home Forums Events Calendar Add-on Calendar no support Latvian language?

Calendar no support Latvian language?

Posted: April 26, 2013 at 1:00 pm

Viewing 25 reply threads


Aivars

April 26, 2013 at 1:00 pm

Hello.

Now I am learning the program, translate technical text (Text that will be displayed on buttons of the header) to the Latvian language(calendar), but me shows scribble.

 

prev: ‘ ◄ ’,next: ‘ ► ’,prevYear: ‘ « ’,nextYear: ‘ » ’,today:’Å¡odiena’,month:’mÄ?nesis’,week: ‘nedÄ?ļa’,day:’diena’

 

Aivars


Aivars

April 26, 2013 at 1:24 pm

calendar settings / advanced settings


Aivars

April 26, 2013 at 1:27 pm

problem is Button text, but Month Names its ok.

‘Janv?ris’, ‘Febru?ris’, ‘Marts’, ‘Apr?lis’, ‘Maijs’, ‘J?nijs’, ‘J?lijs’, ‘Augusts’, ‘Septembris’, ‘Oktobris’, ‘Novembris’, ‘Decembris’


Aivars

April 26, 2013 at 3:31 pm

+ PDF invoice not suport Latvian language (unicode)

+ PDF invoice not show full organization name, not show full event name, not unicode

+ PDF ticket not show latvian language, unicode

+ in the PDF ticket is Espresso baner link

+PDF name not suport latvian language, unicode.

……. I dont understand, what should i do?


Aivars

April 26, 2013 at 3:33 pm

+ PDF invoice not suport logo adress/image link – error.

+ in the event description show calendar icon, but click to the this icon and show error/not calendar.


Sidney Harrell

April 29, 2013 at 11:18 am

I tried changing the text for “month” and I’m not seeing the problem: http://eetesting.info/EE_branch/calendar/


Aivars

April 29, 2013 at 11:42 am

Hello Sidney,

I rewrite coretly text:

prev: ‘ ◄ ’,next: ‘ ► ’,prevYear: ‘ « ’,nextYear: ‘ » ’,today:’šodiena’,month:’m?nesis’,week: ‘ned??a’,day:’diena’

But web show: http://bigabc.tv/lv/

 

 


Sidney Harrell

April 29, 2013 at 1:08 pm

I think I see the problem. When I went to change the text for “week” it displays correctly on the front end, but it messed up the text that I had previously put in for “month”. The only thing I can suggest right now is to copy all those text fields into a text editor, change them all to the correct text, and paste them back into the EE backend and save them all at once. We’ll have to look into why the correct text which is in the database, since it is displaying correctly on the front end, is displaying incorrectly when reloaded into those text fields on the back end.


Aivars

April 29, 2013 at 1:36 pm

ok, I’ll do it and then will report back the results.


Aivars

April 29, 2013 at 1:53 pm

Hi Sidney,

Yes, I write in notepad and copy/paste all text= its ok. But – click repeatedly save calendar option = and reappearance of the problem, etters change to scribble.

Ok, I now leave, but please be repaired and give me know.

Next – invoice,ticket ,Espresso link, full organization name, full event name, logo adress/image link, “my” calendar icon…


Aivars

April 29, 2013 at 1:53 pm

http://bigabc.tv/lv/


Aivars

April 29, 2013 at 1:57 pm

+ in Latvian currency is LVL
where can I switch?
general I have stated Latvia, but show $


Aivars

April 30, 2013 at 8:10 am

LVL or EUR


Sidney Harrell

April 30, 2013 at 8:39 am

I’ve added LVL as the Latvian currency to the 3.1.34 version in development. Until that version is released, you can go into the file includes/organization_config.php and add the following lines after line 109:

case 'LVA' : $org_options['currency_symbol'] = 'LVL'; //Latvian
				break;


Chris Reynolds

  • Support Staff

April 30, 2013 at 9:54 am

@Aivars

Question for you:

The reason why the latvian currency was not supported by the plugin was because we don’t support a payment gateway that accepts that currency. This, obviously doesn’t apply to you since you’re using the offline, invoice option as your gateway. So my question is, in your opinion, should we support every currency option — even those that are not backed up by a payment gateway to accept payments in that currency?

This leads to some other potential future issues since the currency that is used for display is based on the organization country set in the General Settings page that might even be potentially different than the currency that the actual gateway takes. It’s a rabbit hole that we’re planning on revisiting in the next generation version of the plugin and have had numerous development talks about in the past. Just looking for feedback so we know how people want and are expecting to use Event Espresso.


Aivars

April 30, 2013 at 10:38 am

Hi Sidney,

Thank you, I add after line 109, its ok – show LVL.


@Chris

Hi,
I will write an answer for you, my vision, next coment ok.


Aivars

April 30, 2013 at 10:43 am

Sidney,

PDF invoice show EUR.


Aivars

April 30, 2013 at 11:59 am

Hi Sidney,
You have the correct idea – please next to the 3.1.34 version Latvia – EUR.
I now find myself also overwrite LVL to EUR.

 

Hi Chris,

Yes, I now, LVL only accepts bank transfer and cash, paypal and other does not.

Latvia is the European Union and next year will amount to EUR(2014.) Baltic states (Latvia, Lithuania, Estonia) all will be EUR.

My vision is that:
Yes, it should all currencies and –

General section:
1.choose a country(latvia, ASV etc.).
2.next – select button options prices
2.1. one chance – one currency payment gateway and bank transfers(invoice) and cash+(put chekbox – choose a currency)
2.2. second chance – two currency – one currency for payment gateway, the other for  bank transfers(invoice)and cash+(put chekbox – choose a currency)
2.3. the third chance- one currency – only bank transfers(invoice)+(put chekbox – choose a currency) p.s.2.3 is they only use bank transfers and cash.

Chris, you understand my idea?
in this case, the program will use fully all human beings.

Ok, you help me to deal with my questions on the pdf and the rest of the above-written?

 

Aivars.


Chris Reynolds

  • Support Staff

April 30, 2013 at 12:14 pm

Aivars —

The plan moving forward is to drop the current functionality where the currency is determined based on the location. This obviously becomes an issue with EU countries or countries that support multiple currencies and adds more headaches. But this isn’t a change we’ll see in the current branch of Event Espresso (3.1.x). Ultimately, we’ll be moving toward more what you’re thinking where you can specify the country and the currency separately and I believe the plan is to deal with that on the payments page, since that’s what is really affected. Support for multiple currencies may come in one form or another at some point, but it’s tricky as it also relies on gateway support for multiple currencies.

For now, what we can try to start doing is specifying the currencies to the countries, but it will probably be on an as-needed basis since most of our development energy is toward Event Espresso 4.0+.


Aivars

April 30, 2013 at 12:14 pm

How rewrite the code for the Latvia to display the EUR? Dont show LVL but EUR.


Chris Reynolds

  • Support Staff

April 30, 2013 at 12:20 pm

oh AND…

PDF invoice show EUR.

Sidney’s suggested fix should have taken care of that…
What you could try is open /gateways/invoice/function.pdf.php and replace this:

		// this temp stop gap for Euro decode issue
		if(getCountryZoneId($org_options['organization_country']) == '2'){
		$currency_sign = 'EUR ';
		}else{
		$currency_sign = html_entity_decode( $org_options[ 'currency_symbol' ], ENT_QUOTES, 'ISO-8859-15' );
		}

…with this

		// this overrides the currency symbol to be LVL
		$currency_sign = 'LVL';


Chris Reynolds

  • Support Staff

April 30, 2013 at 12:22 pm

It’s possible that the reason why it didn’t update if you made that change to the code that Sidney suggested was because you may need to re-save your general settings. That would update the currency code to be LVL.


Aivars

April 30, 2013 at 12:49 pm

Chris,

What do I have to be created in Latvia EUR?
everywhere will be EUR.
LVL no.

110 line this?

case ‘LVL’ : $org_options[‘currency_symbol’] = ‘EUR’; //Latvian
break;


Sidney Harrell

April 30, 2013 at 12:59 pm

case ‘LVA’ : $org_options['currency_symbol'] = ‘EUR’; //Latvian
break;

“LVA” is the 3 letter iso code for latvia.


Chris Reynolds

  • Support Staff

April 30, 2013 at 1:08 pm

right, and if you wanted to change the currency symbol so it’s not EUR, you’d need to change that to:

case 'LVA' : $org_options['currency_symbol'] = 'LVL'; //Latvian

The above code Sidney posted would set the currency code for Latvia to be EUR.


Aivars

April 30, 2013 at 1:34 pm

Yes, its ok. Thank you Chris and Sidney, Latvia show EUR.

I close this ticket and open next my question.

Viewing 25 reply threads

The support post ‘Calendar no support Latvian language?’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso