localization - Localise dynamic text string in iOS -


I started working on localizing my iOS app and now I have to face some such problems I was hoping someone could help me together

I have worked fine for my string file using genstrings for English and French text and for all the static text in my app. However, for the dynamic string, the genstrings do not make a key in my string file because I used a variable for strings in the NSLocalyped string () macro. It tells me the error that the string is not a literal string. Which is understandable, I'm actually using allocated dynamic data, and some values ​​from pars and core data will be used in my app on runtime

Pls guides me that I Where's the wrong, I understand that I have to make a key for all the possible combinations of wires that I will get in my string file. And depending on the text I receive, do I have to add a check to my code for each string? If I have 20 strings from the parse for the label, then I will get 20 checks for that label? Is there an easy way to do this.

NSLchronized string should be used continuously with 'identifier' ( Literal) This is related with genstrings and it allows to generate .strings file. Preferably, when using NSLocalizedString to describe parameter + order, you should set a comment so that the translator knows what to do.

Now, the .string file should be updated with the proper text and format variables (in the appropriate order for the language).

At no point should the format code be specified. You can not guarantee, and how many words will be around the format parameters in each different language.

There is an interesting discussion on this topic. Html

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -