Multilingual Support

Where developers, translators, and users meet...
eil
Posts: 1814
Joined: 13 Jan 2011 19:44

Re: Multilingual Support

Post by eil »

what parts of this example need to be translated?
Win 7 SP1 x64 100% 1366x768|1900x1080

DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Multilingual Support

Post by DmFedorov »

As you see I have a problem with word "move"
This Word "move" i can't translate, because it is a command. (XYplorer will not work, by translation)
(10.29.2012 08_27_50).gif
(10.29.2012 08_27_50).gif (12.73 KiB) Viewed 3166 times
But after lng-file I can translate "move" and can translate button "NO" (was not translated, because russian NO = Нет, 3 symbols, not 2)
----------------------------------
eil wrote:what parts of this example need to be translated?
All parts.

By translating is important to know how to cause this dialogue. Dialogue is caused by means of dragging and keeping the left button of a mouse and only if in the Configuration | Extended |Safety Belts (section name) ticked item "Confirm drag and drop"

Filehero wrote:Resource hacking? Can't think of any other way - which indeed put this achievement in the context of celebrating the 1. FCK got the triple. :mrgreen:
No resource hacking, only Radialix-program for translation "hard coded strings".

By learning of this program (3 years ago) I have one month worked with the author. He corrected as could defects and as a result it became possible to use the program. After that he ceased to react to remarks. And from the point of view of the translator (my point of view) the program despite change of numbers of versions remained former and even became worse.
Bright negative example.
Don is a bright positive example.

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

eil wrote:what parts of this example need to be translated?
The red parts:

"You have initiated a <move;copy;delete;rename;backup;custom copy;custom move;unknown> of <2:#> <2:item;~s><$mode>.\n\n<$sourcelabel>\t<$source>\nTarget:\t<$target>\n\nClick Yes to continue, or No to abort."

Borut
Posts: 1466
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Multilingual Support

Post by Borut »

admin wrote:<2:#> <2:item;~s>
Don, here a premature question (since I am curious):

Hopefully, if the plural version does not start with tilde, one can use the full plural form at that place, if necessary?

Example:

<2:#> <2:Haus;Häuser>

(if it were about houses and not items).

In some Slavic languages, for object (in place for item) it is even worse (but one definitely does not need to go to such extremes!):

You have started to... (genitive form) (Sie haben angefangen... zu verschieben)
Započeli ste micanje 1 objekta, 2,3,4 objekta, 5+ objekata

You are moving... (accusative form) (Sie verschieben...)
Mičete 1 objekt, 2,3,4 objekta, 5+ objekata

Edit: BTW, I think it would be good to move this thread into the Multilingual Support area.
Win 10 Pro 64bit

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

Yes, I cared for all of this. I like extremes. :)

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

Code: Select all

========================================================================
XYPLORER TRANSLATION GUIDE - 2012-10-31 20:36
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

IMPORTANT NOTE TO TRANSLATORS
=============================
Do not start yet with the serious work! This first version is just for 
playing. Try something. Look for questions and problems. Give feedback.

Download Test Package
~~~~~~~~~~~~~~~~~~~~~
Download link to "Reference.lng" which you can use together with "Language.ini" for playing:

  http://www.xyplorer.com/download/Language.zip

The test "Reference.lng" has two translations right at the beginning just show that it works:
  co.0001= OK--- O.K.
  co.0002= Cancel--- Abbrechen

Files
~~~~~
- "Language.ini" in App Data Folder points to the current language file
  Sample contents of "Language.ini":
    [Settings]
    LanguageFile=Reference.lng
  Without "Language.ini" the app will load with embedded English strings.
- You must restart XYplorer to reread an updated language file.
- "TipOfTheDay.htm" contents are NOT included. This file should be translated by itself if desired.
- "CatalogDefault.dat" contents are NOT included. This file should be 
  translated by itself if desired. (Currently the app will NOT load 
  "CatalogDefault.dat" when a language other than English is loaded.

Format of Reference.lng
~~~~~~~~~~~~~~~~~~~~~~~

- The file is organized in various sections. For internal reasons 
  mostly. Ultimately it's all about speed and memory.

- sample entry:
  co.0074= Toggle Info Panel--- Toggle Info &Panel
  -------  -----------------    ------------------
  ID       ORIGINAL             TRANSLATION

- do not change ID
- do not change ORIGINAL
- do not change the order of items
- just work on the TRANSLATION
- keep spaces left and right
- some ORIGINALs are prefixed with a tzype descriptor to guide the translator:
  - caption:    -> mind the length!! (GUI item should not break layout)
  - menu:       -> length not important.
  - tooltip:    -> length not important.
  - tag:        -> length not important.
- do not translate <$variables>
- ; you can add comment lines as you like by prefixing them with ;
- Line feeds are written as \n.
- Tabs are written as \t.
- Accelerators (&Panel) can be given in TRANSLATION. They are not shown in ORIGINAL.

Grammatical Number
~~~~~~~~~~~~~~~~~~
Examples:
  <#> <file;files> found
  <#> <file;~s> found
  <#> <file;~s> <has been;have been> found
  <#> <file;~s> and <2:#> <2:folder;~s>
Explanation:
  <#>   = the number itself
  <singular form;plural form> = a word (noun/adj/verb) in agreement to this number
  ~     = placeholder for the first form (practical in many languages with affixing morphology)
  <2:#> = a second number itself (agreeing with <2:folder;~s>)

- Grammatical number is preset to Western European (English, German, Italian, Portuguese, Spanish) type <one;other>
- Note that French (n3) might need <zero/one;other> (ask me for details)
- Other number systems are supported (ask me for details), e.g. Russian/Slavic (n5) <one;few;many;other>
- There is a scripting function for debugging grammatical number:
  ::lang_testnum "<#> <n5:файл;файла;файлов;файлов>", 11

Suffixes
~~~~~~~~
- Do not translate {suffixes}; they are just there for disambiguation, e.g.: cut{noun} vs cut{infinitive} vs cut{imperative} vs cut{perfect participle}
- "{dropdown}": careful with the the commas or semicolons; don't add or remove!! a mistake will confuse the commands!!
- "{menu}": careful with the the commas or semicolons; don't add or remove!! a mistake will confuse the commands!!
========================================================================

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Multilingual Support

Post by SkyFrontier »

To make translation easier, XY style...
(select the 'Reference.lng' and run this tool - you can be surprised...)

Code: Select all

 $refNm = "Reference.lng";
 $sep = "--- ";
 $tart = "12"; // adjust here so you can resume your work peacefully...
 $base = readfile("<curitem>");
 $filename = "<curname>";
 $tt = gettoken($base, count, "<crlf>");
 IF ($refNm == $filename) { }
 ELSEIF ($refNm != $filename) {
//a cool 'ok/cancel' feature is planned... someday, one day...
 echo "warning!<crlf>Chosen<crlf>'$filename'doesn't match expected<crlf>'$refNm' for the file name...";
            }
 $ttfix = $tt - $tart;
 while($tart <= $tt) {
 $tart++;
 $tk = gettoken($base, $tart, "<crlf>");

 $ctrl++;
 $tst = gettoken($tk, 2, "$sep");
 IF ($tst == "") { continue; }
 ELSEIF ($tst != "")   {

 $src = gettoken($tk, 1, "$sep");
//expect better output for ops to go the same day the 'ok/cancel' reaches the light...
 $tr = input("Enter the string to be translated, please! (# $ctrl processing now, $ttfix to go...)", "Source: $src", $tst, w, , 1240);
 writefile ("XYtranslation" . "$filename", "$src" . "$sep" . "$tr<crlf>", a);
           }
         }


 echo "Now, publish it!<crlf>(don't forget to adjust the header for the produced file...)";
Enhancement: if 'input([default])' is a single word, it should be selected by default, speeding up the process of deletion and further translation a good bit. What about, Don...?

Another little wish here is more, user-controlled space for 'notes'. It would be just perfect for this.

Comments, enhancement requests and free changes are expected or even desired!
Newbies: ctrl+enter is your friend, here... :wink:
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

SkyFrontier wrote:To make translation easier, XY style...
Wow, I thought it could be done via a GUI, but I didn't think you were so fast. :appl:

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

Added some explanations conc. Grammatical Number to the XYPLORER TRANSLATION GUIDE, and moved the guide to its own place: http://www.xyplorer.com/xyfc/viewtopic.php?f=12&t=8809

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

Arggh, due to a brilliant last minute idea the recent beta did not translate the main window GUI nor XYcopy. Fixing it, upload soon... :oops:

DmFedorov
Posts: 715
Joined: 04 Jan 2011 16:36
Location: Germany

Re: Multilingual Support

Post by DmFedorov »

XY v11.70.0103
Find Files/Date/Predefined Intervals (button) - no translation for button-menu

Such as
&Leave Field "and/add" Empty°60,,&Help
&Today°1,This &Week,This &Month,This &Year,,

I don't know why.
--------------
I have not found translation lines for Category_Names in dialogue "Manage UDC"
-----------------
Menu (no Translation for items:)
File | Exit (saving)
View | Sort by | (Ascending) and (Descending)
User | Manage Commnads
Favorites | Labels (None, Red Orange....)
Favorites | Apply Last Label
Tools | Customize List | Date Column Format | (System Short Date), (System Long Date), (System Time), (Zodiac) and all Zodiac_Names
--------------
Help | Various Information | - all items (and Various Information with Crtl too)
--------------
Buttons on Control Panel (Main Set):
Up - Breadcrumb (popup to dropdown List)
Context_menu_buttons:
New Folder - New Shortcut, New Path, New Folders, New Files
Copy, Cut, Paste - Paste Spezial
Branch View - Persist across Folders, Toggle on same Query, Auto-refresh, Level indent, Multi-branch view Lists Top Folders, Configure Branch View
Mini Tree - Fully Collapse Folder, Optimize Tree, Auto-optimize Tree
-----------
Custom Buttons - Edit, Click

-----------
dialogue:
#705; List of all Commands, Click Ok to call a selected command + Context menu: Copy Item, Copy all items
+ items in list of Commands:
- submenu -,Batch Rename...,RegExp Rename...,Search and Replace...,Keep Particular Characters...,Set Extension...,Edit Item Names...,Spaces to _,_ to Spaces,Replace Umlauts,Remove Diacritics,UrlEscape (Space > %20 ...),UrlUnescape (%20 > Space ...),Unicode to UTF-8,UTF-8 to Unicode,New Shortcut...,New Path...,New Folders...,New Files...,Program Files,Windows Folder,System Folder,Temp Folder,Temporary Internet Files,Network Shortcuts,None,Red,Orange,Yellow,Green,Blue,Purple,Grey,[Label #8]..[Label #15],Apply Last Label,Manage Commands...,Go To,Open,Open With,Move To,Copy To,Backup To,New,Rename,Run Script,Load Script File

#602;
Scope: - Tree, List, Catalog, AddressBar, Triggered on KeyDown, Triggered on KeyUp, Global
Description: - [Pop-up submenu]
Press new shortcut: - Currently assigned to, already assigned to this Command, ...back to previous command

button All Free Shortcuts..|Tips - Strings of Tips-Window
---------------------------------------------------------

Ok. To find the rest it is necessary to mark (for example with symbol ¶) the beginning of all lines in Reference.lng and then all that that has no symbol ¶ in dialogues is not translated. Very simple way.

Reference_lng_XY_with¶.7z http://rghost.ru/41290672
Last edited by DmFedorov on 02 Nov 2012 10:19, edited 1 time in total.

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

admin wrote:
SkyFrontier wrote:To make translation easier, XY style...
Wow, I thought it could be done via a GUI, but I didn't think you were so fast. :appl:
Inspired by this I will create an interface to the *.lng file, resp. to translation. A revolutionary approach to software translation with WYSIWYG preview of the translated control, and other bells and whistles. Translation should be as easy as possible and even fun. Especially when you don't get paid for it. ;)

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

DmFedorov wrote:XY v11.70.0103
Find Files/Date/Predefined Intervals (button) - no translation for button-menu

Such as
&Leave Field "and/add" Empty°60,,&Help
&Today°1,This &Week,This &Month,This &Year,,

I don't know why.
--------------
I have not found translation lines for Category_Names in dialogue "Manage UDC"
-----------------
Menu (no Translation for items:)
File | Exit (saving)
View | Sort by | (Ascending) and (Descending)
User | Manage Commnads
Favorites | Labels (None, Red Orange....)
Favorites | Apply Last Label
Tools | Customize List | Date Column Format | (System Short Date), (System Long Date), (System Time), (Zodiac) and all Zodiac_Names
--------------
Help | Various Information | - all items (and Various Information with Crtl too)
--------------
Buttons on Control Panel (Main Set):
Up - Breadcrumb (popup to dropdown List)
Context_menu_buttons:
New Folder - New Shortcut, New Path, New Folders, New Files
Copy, Cut, Paste - Paste Spezial
Branch View - Persist across Folders, Toggle on same Query, Auto-refresh, Level indent, Multi-branch view Lists Top Folders, Configure Branch View
Mini Tree - Fully Collapse Folder, Optimize Tree, Auto-optimize Tree
-----------
Custom Buttons - Edit, Click

-----------
dialogue:
#705; List of all Commands, Click Ok to call a selected command + Context menu: Copy Item, Copy all items
+ items in list of Commands:
- submenu -,Batch Rename...,RegExp Rename...,Search and Replace...,Keep Particular Characters...,Set Extension...,Edit Item Names...,Spaces to _,_ to Spaces,Replace Umlauts,Remove Diacritics,UrlEscape (Space > %20 ...),UrlUnescape (%20 > Space ...),Unicode to UTF-8,UTF-8 to Unicode,New Shortcut...,New Path...,New Folders...,New Files...,Program Files,Windows Folder,System Folder,Temp Folder,Temporary Internet Files,Network Shortcuts,None,Red,Orange,Yellow,Green,Blue,Purple,Grey,[Label #8]..[Label #15],Apply Last Label,Manage Commands...,Go To,Open,Open With,Move To,Copy To,Backup To,New,Rename,Run Script,Load Script File

#602;
Scope: - Tree, List, Catalog, AddressBar, Triggered on KeyDown, Triggered on KeyUp, Global
Description: - [Pop-up submenu]
Press new shortcut: - Currently assigned to, already assigned to this Command, ...back to previous command

button All Free Shortcuts..|Tips - Strings of Tips-Window
---------------------------------------------------------

Ok. To find the rest it is necessary to mark (for example with symbol ¶) the beginning of all lines in Reference.lng and then all that that has no symbol ¶ in dialogues is not translated. Very simple way.

Reference_lng_XY_with¶.7z http://rghost.ru/41290672
Thanks, Dmitry!

Great help, I think I could find and fix them all (took me almost the whole day, tricky stuff).

Exceptions:

- Various Information: This is not translated on purpose. It's mostly meant for debugging, so *I* have to understand it.

- all these I could not understand or find (might be I fixed some of them before reading your post):
Buttons on Control Panel (Main Set):
Up - Breadcrumb (popup to dropdown List)
Context_menu_buttons:
New Folder - New Shortcut, New Path, New Folders, New Files
Copy, Cut, Paste - Paste Spezial
Branch View - Persist across Folders, Toggle on same Query, Auto-refresh, Level indent, Multi-branch view Lists Top Folders, Configure Branch View
Mini Tree - Fully Collapse Folder, Optimize Tree, Auto-optimize Tree
-----------
Custom Buttons - Edit, Click

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Multilingual Support

Post by Marco »

Code: Select all

    + MLS: Now the *.LNG file may also be in ASCII format (non-Unicode).
      For most West-European languages ASCII is okay.
Isn't English the only language that could use just ASCII?
For example, Italian absolutely requires "è", French too has some stressed vowels, and German has umlauts.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 64828
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Multilingual Support

Post by admin »

Marco wrote:

Code: Select all

    + MLS: Now the *.LNG file may also be in ASCII format (non-Unicode).
      For most West-European languages ASCII is okay.
Isn't English the only language that could use just ASCII?
For example, Italian absolutely requires "è", French too has some stressed vowels, and German has umlauts.
Okay, maybe ASCII is not the right term, but those languages do not need the Unicode format but can use the 1 character = 1 byte system plus the local codepage.

Post Reply