GenTokens options refer to X languages but Y are defined

Navigation:  Messages > Design-Time Messages > DiaryGridLines >

GenTokens options refer to X languages but Y are defined

Previous pageReturn to chapter overviewNext page

Cause: Q++Studio has noticed that the tokens to display on each line of the GenTokens options used by the current DiaryGridLine, has tokens corresponding to X different languages. However the number of Languages selected in the Languages property is Y, a different number.


The root cause of this mismatch depends on the relative values of X and Y.


If X<Y, this usually comes from copying a Script used for a bilingual GridTemplate and then re-using it for a unilingual GridTemplate. If X>Y, this is usually an oversight, such as forgetting that a GridTemplate is bilingual.


Some cases of X>Y can be caused by token errors. Most often it is due to forgetting to put the DayValue in front of a token, such as hours tokens, in which case Q++Studio thinks that token represents the "h" LanguageTag.


Consequences : If X<Y this message will only be a hint and the extra languages selected will be ignored. If X>Y, then this message will be an error and Q++Studio will not execute this Script until this error is fixed.


Solutions :


Edit List of Languages : Opens the Languages property editor, so you can add or remove languages.


Modify [GenTokens] : Opens the corresponding GenTokens options (located in the GridOptions), so you can modify any token errors.

Topic 176095 updated on 31-Dec-2018.
Topic URL: