locale: Fixed doc comment for string_resolve
This commit is contained in:
parent
2c7e8ef76d
commit
24b58f584f
@ -17,11 +17,11 @@ export type string = [](locale, str);
|
||||
// -------------------------------------------------------------------------- //
|
||||
|
||||
// Selects the most appropriate localized version of a [[string]] given a
|
||||
// [[locale]]. The matching algorithm used is the one specified by the
|
||||
// XDG Desktop Entry Specification, §5, with the addition of a preliminary step
|
||||
// where a match against the exact locale is attempted. If no suitable version
|
||||
// is found, an exact match with the C locale will be attempted. If there are
|
||||
// none, void will be returned. Memory is borrowed from the input.
|
||||
// [[locale]]. First, a match against the exact locale is attempted. If nothing
|
||||
// is found, the matching algorithm specified by the XDG Desktop Entry
|
||||
// Specification §5 is used. If nothing is found, an exact match with the C
|
||||
// locale will be attempted. If nothing is found, void will be returned. Memory
|
||||
// is borrowed from the input.
|
||||
export fn string_resolve(strin: string, local: locale) (str | void) = {
|
||||
// lang_COUNTRY@MODIFIER.ENCODING
|
||||
match (string_resolve_exact(strin, local)) {
|
||||
|
Loading…
Reference in New Issue
Block a user