1

How can I translate my FogBugz site to a different language?

flag

1 Answer

0

This post only applies to locally-installed FogBugz for your server. FogBugz On Demand is not supported.

All of the words you see displayed when using FogBugz are contained in a file called lang.xml. It's an XML file, but you have to use Excel to edit it. There exists one column for each language in a FogBugz installation. FogBugz comes with English, German and Portugese translations, but if you're using Licensed FogBugz, you can add new languages that will then be available from the user Options page.

To add a new language such as Italian to your FogBugz installation:

  • Create a directory under FogBugz/src-website/res called it-IT
  • Edit the FBLanguage table in the FogBugz database. Put the name of the directory you just created (it-IT) into the sLangFile column on the row with the sLocaleCode of it-it.
  • Create your own column in the lang.xml file. Edit any rows you want to change. If a string isn't supplied for a given language, FogBugz will fall back to English.
  • One special row in the lang.xml file is called FB_LANGUAGE. Make sure you set this to it-IT
  • Edit the FogBugz\src-Website\Includes.was file to include your new file. (e.g. at the bottom in the includes, add Option Include "res/it-IT/lang.was")
  • Run LangGenerator.exe in the FogBugz/src-Website/res directory. This will create a file called lang.was in the it-IT subdirectory.
  • Run FogBugz/build.bat to build FogBugz (make sure to build FogBugz in place where it is run from, so external dll references have the correct path)
  • Now users will be shown the Italian version if their FogBugz option is set to "Use Browser Format" and their browser is set to Italian, or if they explicitly choose Italian from their Options page.
  • If you'd like to send us your lang.xml file, we can try to include it in a future release.

Warning: Make sure the server you are running FogBugz on is set to the English locale when you build FogBugz, otherwise you may experience strange CSS problems. (The CSS file does artithmetic with numbers like 1.8 and if the locale is not set to English in the OS at build time, this could be interpreted incorrectly in places where that should be 1,8)

For Linux/Mac users: You can move the res folder to a Windows machine and do the above steps until after you've run LangGenerator.exe. Then simply copy the res folder back to your Linux/Mac install to build FogBugz. The important piece is the it-IT/lang.was file being in the right place before you run build.bat

link|flag
1 
how this ever became the agreed solution for localizing strings in FogBugz is beyond me! – BurningIce Oct 27 2010 at 11:29
does this walk through apply for the newest versions of FogBugz as well? I can't find the FBLanguage table in my database, and after browser all the tables, i can't find anything that seems to relate to the sLangFile mentioned in step 2. – BurningIce May 11 at 14:34

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.