Use a custom language file doesn't work

Bug #1600526 reported by Sopor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AirDC++
New
Undecided
Unassigned

Bug Description

In the Appearance settings i can select my own language file but when i restart i only get an error message it can't find the language file and it points to the original folder "Language" that is placed in the same folder as AirDC.exe (i'm running portable version)
Failed to load the language file:
C:\AirDC_3.21\Language\sv-SE.xml: The system cannot find the file specified.
The language "Swedish" has been successfully updated. Changes will take effect after restarting the client.
As you can see it will download a new language file instead of using my custom one.
After i change to my custom language file i can see it in the DCPlusPlus.xml:
<LanguageFile type="string">C:\CustomLanguage\sv-SE.xml</LanguageFile> but when i start AirDC again it will change back to:
<LanguageFile type="string">sv-SE.xml</LanguageFile>
I have even tried to select English before i load the custom language file but it will still not work. Same thing again, the language files need to be located in that folder, Language.

Revision history for this message
maksis (maksis) wrote :

The file name should differ from the one used by the client

Revision history for this message
Sopor (sopor) wrote :

After changing name of the lang file it seems to work but now i can't select any other language. I have tried to change language in the language selector, not working. It will still show Custom after i restart. I then empty the custom language line in Appearance and this will change language to English but now it won't change language to Swedish (non of these changes was visible in the system log). If i select Dutch it seems to work. The only time it will show a message in the system log was when i selected the Dutch language. There should be a message when i select English too so the user can see it has changed to English.

Revision history for this message
maksis (maksis) wrote :

It works as long as you don't visit both pages (settings on the Appearance page will be saved after the General page). There shouldn't be any message when switching languages. Only downloaded/updated language files are announced.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.