Is there a way to make localizable.strings case insensitive

I use localization in my iPhone app.

I have almost 10 languages ​​with a long "string file" for each. I noticed that the lines in the .string files are case sensitive, which does the tedious job of keeping track of every file and every letter inside it, especially that I get these files from other people who translate them for me.

So, is there a way to make these lines case insensitive?

+4
source share
1 answer

How about you set the keys for localized strings to lowercase? Therefore, you do not need to worry about any top lines. I do not think it can be made strings explicitly case insensitive.

eg:.

NSLog(@"%@", NSLocalizedString(@"test", @"comment...")); 

And in the Localizable.strings files for the corresponding language:

 "test" = "Teststring English"; "test" = "Teststring Another Language"; 
0
source

Source: https://habr.com/ru/post/1432645/


All Articles