Modifying Mixed Source Tokens

Navigation:  Languages and Translations > The Tokens Manager > Token Translations >

Modifying Mixed Source Tokens

Previous pageReturn to chapter overviewNext page

Important : if you cannot see the mixed-source token you are looking for, use the UPDATE TOKENS LIST button at the top right of the Tokens Manager.


Modifying a "mixed source" token is done the same way as modifying a "user defined" token, but requires a bit of care. Mixed source tokens have different translations for a given language, depending on an index position.



A good example is the weekday token [ddd]. You obviously need to supply Q++Studio with a translation for all the possible weekdays for each language. However it is Q++Studio which decides that for a given day [ddd] will be replaced by "Mon" rather than "Wed".


Other examples of mixed source tokens are the 12 month names and the 4 seasons. For a discussion of the use of mixed source tokens, see Mixed Source Tokens.


When translating mixed source tokens it is important to use the correct index positions. The correct index positions are given on the column to the right where the English translation of the current token is displayed.


Care must be taken since there are some minor inconsistencies in the value of the first index position. For example the token [dddd] has indexes running from 0-6, while the token [mmmm] has indexes running from 1-12.


If the language for which you are setting token translations has characters not available on your keyboard, click on the ellipsis to display the Character Selection Dialog.


Because Q++Studio must know how to interpret the various index positions of mixed source tokens, you cannot define new mixed source tokens by yourself. You can however contact me to see if it is feasible for us to add some special code to Q++Studio to handle this case.

Topic 104049 updated on 03-May-2018.
Topic URL: