Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Strange codes in language.php string definitions

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
8 years 10 months ago - 8 years 10 months ago #274743 by boyjahq
What is the reason for some language string definitions to have a strange, seemingly random code attached?

For example:
SAVE_PERMISSIONS_ERROR_e3c4f2 (strange code is e3c4f2)
or
PUBLISH_ITEM_9488dd

Other items do not have such a code, i.e., FIELD_ASCENDING or UE_EDIT_TITLE
Last edit: 8 years 10 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274774 by nant

boyjahq wrote: What is the reason for some language string definitions to have a strange, seemingly random code attached?

For example:
SAVE_PERMISSIONS_ERROR_e3c4f2 (strange code is e3c4f2)
or
PUBLISH_ITEM_9488dd

Other items do not have such a code, i.e., FIELD_ASCENDING or UE_EDIT_TITLE


These are keys that have been automatically generated from our build scripts.
That is why the have the unique endings.

You should not bother with these - just keep them as they are.

Please Log in or Create an account to join the conversation.

  • boyjahq
  • boyjahq
  • OFFLINE
  • Posts: 473
  • Thanks: 33
  • Karma: 3
8 years 10 months ago #274781 by boyjahq
They are not convenient nor intuitive but may I assume that they will not change in future implementations? That the special code that is associated with a specific string will remain the same going forward?

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 10 months ago #274782 by nant

boyjahq wrote: They are not convenient nor intuitive but may I assume that they will not change in future implementations? That the special code that is associated with a specific string will remain the same going forward?


If a key is specified in the source code then that key will be used in the language file.

If a key is not specified in the source code, then our build script will generate a unique key using the default language text (from the code) and the hash generated strange number.

If the default language text changes, the generated key will change.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum