Replies: 1 comment 1 reply
-
One big advantage of using id based translations is that the id does not change if the source string changes. If you have for example a typo in the source string and fix it, the translations for other languages still work as the id has not changed. It is also easier to change the source string for same ids as the source string is only there one time. You are still free to use translate() method instead of qtTrId() in your own application. Both is supported but you should not mix it in the same translation file. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As a programmer, I'm surprised, even though I've seen such ideas before. In my opinion it makes the code less readable...
Beta Was this translation helpful? Give feedback.
All reactions