View Single Post
Old 09-12-2011, 05:36 PM   #2500
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by sengian View Post
The two options would be nice but I was referring to the first as I was talking about translation. However, I really would appreciate if someone was able to explain why simply overwriting lang.ods or modifying it results in major failure of the translation in the build ie mainly English option-names (and it was not the problem of structure modification as I modified the correct file).
Very annoying.
My English is very bad, sorry if I do not understand and I do not answer your question.
To properly translate the variables RESULTS_SIZE and MAX_SMART_ZOOM is necessary to change the code of file DictionaryCL.js.

Original code:
Code:
{
                            name: "resultSize",
                                title: 'Results size',  //@@@
                                icon: "ABC",
                                defaultValue: 25,
                                values: [15, 20, 25, 30, 35],
                                valueTitles: {
                                        15: '15', 20: '20', 25: '25', 30: '30', 35: '35'
                                }
                        },
                        {
                            name: "maxSmartZoom",
                                title: 'Max smart zoom',  //@@@
                                icon: "ABC",
                                defaultValue: 20,
                                values: [0, 10, 20, 25, 40, 50],
                                valueTitles: {
                                    0: 'Disabled', 10: '10 %', 20: '20 %', 25: '25 %', 40: '40 %', 50: '50 %'   //@@@
                                }
Code with translation:
Code:
{
			    name: "resultSize",
				title: L("RESULTS_SIZE"),  
				icon: "TEXT_SCALE", 
				defaultValue: 25,
				values: [15, 20, 25, 30, 35],
				valueTitles: {
					15: '15', 20: '20', 25: '25', 30: '30', 35: '35'
				}
			},
			{
			    name: "maxSmartZoom",
				title: L("MAX_SMART_ZOOM"),  
				icon: "TEXT_SCALE", 
				defaultValue: 20,
				values: [0, 10, 20, 25, 40, 50],
				valueTitles: {
				    0: 'Disabled', 10: '10 %', 20: '20 %', 25: '25 %', 40: '40 %', 50: '50 %'   //@@@
				}
surquizu is offline   Reply With Quote