Skip to content

Commit 339c3ce

Browse files
committed
Update JavaDoc
1 parent 0de189b commit 339c3ce

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎api/src/main/java/org/ocpsoft/rewrite/transposition/LocaleTransposition.java‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ private LocaleTransposition(final String languageParam, final String bundleName)
6868
* .where("path").transposedBy(LocaleTransposition.bundle("org.example.Paths", "lang"));
6969
* </pre>
7070
* <p>
71-
* In the above scenario, "org.example.Paths" is the resource bundle name. The value of the {@link Parameter} "lang" is used
72-
* as the bundle {@link Locale}. The initial value of the {@link Parameter} "path" is used as the lookup key, and is
73-
* transposed to the value of the corresponding resource bundle entry. Once transposition has occurred, after rule
74-
* evaluation, subsequent references to the "path" {@link Parameter} will return the value from the
75-
* {@link ResourceBundle} entry.
71+
* In the above scenario, "org.example.Paths" is the resource bundle name. The value of the {@link Parameter} "lang" is
72+
* extracted from the inbound request URL, and used as the bundle {@link Locale}. The initial value of the {@link Parameter}
73+
* "path" is used as the lookup key, and is transposed to the value of the corresponding resource bundle entry. Once
74+
* transposition has occurred, after rule evaluation, subsequent references to the "path" {@link Parameter} will return the
75+
* value from the {@link ResourceBundle} entry.
7676
* <p>
7777
* When this example is applied to a URL of: "/de/bibliotek", assuming a bundle called "org.example.Paths_de" exists
7878
* and contains the an entry "bibliotek=library", the rule will forward to the new URL: "/library", because the value

0 commit comments

Comments
 (0)