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

Some of the tokens to display on each line of the GenTokens options used by the current DiaryGridLine, contain references to X different languages, although 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 uni-lingual 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.


As a consequence, 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 you will not be able to generate this diary until this error is fixed.




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 05-Mar-2019.
Topic URL: