Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

In the resource file itself the entry is identified by

  • its namespace
  • a class name
  • an enum value
  • (e.g. MyProject.MyPage.ID1)

If an enum is not within a page, the following string is used as a substitute: MyProject.ResourceIdentifiers.ID1. In other words, the resource-ID is composed of

  • its namespace
  • the enum type
  • the enum value

You can derive a list of all resource-IDs defined with a ResourceIdentifiersAttribute in a module with the resource summary utility. Xquestion

...

There are two ways to find out which language to select for the user:

  • Provide options in the application (hyperlinks, user settings).
  • Inspect the UserLanguages collection of the Page.Request object. It holds the language selected in the user's browser.

If you don't set the culture in your code, the framework inspects the globalization section in the Web.config file. If no entry is found, the setting in the process is used as the default culture.