First mod: subdirectory for lang files

Dec 22, 2010 at 12:38 PM

If you are interested:

This is my first modification, because I wat the lang files to reside in a subdirectory:

 public static void Read(Translation translation)
{
if (Directory.Exists(Path.Combine(Application.StartupPath, "lang")))
Read(Path.Combine(Application.StartupPath, "lang"), translation);
else

Read(Application.StartupPath, translation);
}

Sure, it would be better if it could be configured in the app.config file. Maybe in the next step.

 

Regards, Tom

Coordinator
Dec 22, 2010 at 4:12 PM

Thx!

It will be in the new version of NLocalizer :)

Coordinator
Sep 2, 2011 at 3:23 PM

NLocalizer 1.7+ autodetect program subdirectory with .lang files.