Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Catch missing local resources in resx files

I have many resource files, in many different languages.

Lets suppose for example we are supporting 3 languages (en, de, fr), and have this file:

common.resx common.de.resx common.fr.resx

I would like to detect occurrences when for instance a resource is requested in de, but is missing and so reverts to the default language. Is there any way of catching this? (so I can log it and later add the missing resource).

Thanks

like image 641
UpTheCreek Avatar asked Oct 12 '09 09:10

UpTheCreek


1 Answers

If you want to catch the differences use RESX Synchronizer. It is an open source app that can synchornize all differences from main resx to localized one (it adds and/or removes keys in the localized resource).

You can use it as follows to copy all changes from common.resx to common.de.resx:

resxsync /v common.resx common.de.resx

The /v option list all changes that is all keys that were added to or removed from the de resx.

like image 179
Piotr Czapla Avatar answered Sep 19 '22 18:09

Piotr Czapla