I am developing a multi-language application which supports English and Japanese. But, as everyone might have known, the language structure of these two languages are quite different. For example, when I want to show "Line 1" on a VF page in Japanese, it'd be "1行目"(meaning the first line).
I created a custom label named 'Line'.
Japanese = 行目 and English = Line.
I'm planning to develop the process mentioned above as follows; (The code might not compile. It's just a concept.)
String showString; String number = '1'; if(UserInfo.getLanguage() =='ja') showString = number + Label.line; else showString = Lable.line + number;
But I don't want to put an if in my code for every language.
Is there any better ways to solve this problem?