Improve Turkish translations
@shidel, I'm not sure if it's a recent addition or not, but the strings in fdi-x86 has quotes around strings, but rather strangely. They do not seem to include the space preceding and trailing the variable placeholder. Could you please have a look at my example couple of strings, and tell if I'm doing it alright?
@bitigchi, I quickly looked over the submission. There are a couple issues which I'll comment on directly in a few minutes. But, mostly they look fine.
Generally speaking quotations are not needed with only a few exceptions. (I think one of the translators added them for improved readability.)
- To use the switch character (/) in text it must be quoted.
- To use a quote style character (or apostrophe), the parameter must wrapped in a different quote character. For example, to print a " character, wrap them in a single quote like
'He said, "Hello!"'And to use an apostrophe (single quote), wrap them in quotation marks. Like"Go to Bob's House." - To force spacing or additional spacing in a string of text. For example,
hello there my friendwould displayhello there my friend. But, using" hello there" "my friend"will outputhello there my friend
Variable/parameters (like %1) are always expanded wether or not they are inside or outside of quotation marks. To use a percent symbol, simple enter %%.
On a side note, if you are unsure how something is going to displayed, you can use VECHO directly to preview the most text. It is what displays the translation text for the batch based programs. For example, to display the default welcome message for FDI-x86, you can run vecho /t setup.en WELCOME_DEF 1 2 which displays Welcome to the 1 2 installation program.. You just need to provide something to populate the required variables. Since extra variables are ignored. you could just make a simple test like this...
@echo
REM T.BAT for testing V8Power Tools translation resources files
REM Opt1-Opt8 are used to populate the resource string variables
REM Standard V8Power tools quotation rules apply to those.
REM For example, to have spaces in those parameters, they could
REM be "opt 1" "opt 2" ....
vecho /t setup.tr %1 Opt1 Opt2 Opt3 Opt4 Opt5 Opt6 Opt7 Opt8
Then a simple "t.bat WELCOME_ADV" would output Welcome to the Opt1 Opt2 installation program.
Just be aware, there can be options given to VECHO before the resource string is loaded. For example:
vecho /bBlue /e /n /r5 /c32 /t setup.tr %1 Opt1 Opt2
Which would first set the background to Blue (/bBlue) Clear the remainder of the line (/e) and set the background color to Blue, disable printing a CRLF when finished (/n) , then Repeating 5 times (/r5) Writing a space character (/c32) ... Then the resource string would be processed.
Things get a little more complicated with the FDI main installer because it supports themes. Some of the varables passed are not displayed text but are color options. And, care must be taken not to enclose them in quotation marks. However, those can be identified by a preceding color switch of /f or /b. For example /f %1 is a color change and not displayed text. So, perhaps for the test batch this might be better...
vecho /t setup.tr %1 1 2 3 4 5 6 7 8
Colors can be set by name or value. /fRed, /f red, /F4, /f 4, /f0x4, etc. are all equivalent.
Ugh.
:-)
Jerome