mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Documented some quirks of Locale::PO.
- Documented quoting in the msgid, msgid_plural, msgstr, and msgstr_n methods. - Documented newlines in the comment, automatic, and reference methods.
This commit is contained in:
parent
d3b0178d88
commit
35d9107406
@ -452,14 +452,23 @@ msgid, like this:
|
|||||||
|
|
||||||
Set or get the untranslated string from the object.
|
Set or get the untranslated string from the object.
|
||||||
|
|
||||||
|
This method expects the new string in unquoted form
|
||||||
|
but returns the current string in quoted form.
|
||||||
|
|
||||||
=item msgid_plural
|
=item msgid_plural
|
||||||
|
|
||||||
Set or get the untranslated plural string from the object.
|
Set or get the untranslated plural string from the object.
|
||||||
|
|
||||||
|
This method expects the new string in unquoted form
|
||||||
|
but returns the current string in quoted form.
|
||||||
|
|
||||||
=item msgstr
|
=item msgstr
|
||||||
|
|
||||||
Set or get the translated string from the object.
|
Set or get the translated string from the object.
|
||||||
|
|
||||||
|
This method expects the new string in unquoted form
|
||||||
|
but returns the current string in quoted form.
|
||||||
|
|
||||||
=item msgstr_n
|
=item msgstr_n
|
||||||
|
|
||||||
Get or set the translations if there are plurals involved. Takes and
|
Get or set the translations if there are plurals involved. Takes and
|
||||||
@ -473,20 +482,38 @@ the strings. eg:
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
This method expects the new strings in unquoted form
|
||||||
|
but returns the current strings in quoted form.
|
||||||
|
|
||||||
=item comment
|
=item comment
|
||||||
|
|
||||||
Set or get translator comments from the object.
|
Set or get translator comments from the object.
|
||||||
|
|
||||||
|
If there are no such comments, then the value is undef. Otherwise,
|
||||||
|
the value is a string that contains the comment lines delimited with
|
||||||
|
"\n". The string includes neither the S<"# "> at the beginning of
|
||||||
|
each comment line nor the newline at the end of the last comment line.
|
||||||
|
|
||||||
=item automatic
|
=item automatic
|
||||||
|
|
||||||
Set or get automatic comments from the object (inserted by
|
Set or get automatic comments from the object (inserted by
|
||||||
emacs po-mode or xgettext).
|
emacs po-mode or xgettext).
|
||||||
|
|
||||||
|
If there are no such comments, then the value is undef. Otherwise,
|
||||||
|
the value is a string that contains the comment lines delimited with
|
||||||
|
"\n". The string includes neither the S<"#. "> at the beginning of
|
||||||
|
each comment line nor the newline at the end of the last comment line.
|
||||||
|
|
||||||
=item reference
|
=item reference
|
||||||
|
|
||||||
Set or get reference marking comments from the object (inserted
|
Set or get reference marking comments from the object (inserted
|
||||||
by emacs po-mode or gettext).
|
by emacs po-mode or gettext).
|
||||||
|
|
||||||
|
If there are no such comments, then the value is undef. Otherwise,
|
||||||
|
the value is a string that contains the comment lines delimited with
|
||||||
|
"\n". The string includes neither the S<"#: "> at the beginning of
|
||||||
|
each comment line nor the newline at the end of the last comment line.
|
||||||
|
|
||||||
=item fuzzy
|
=item fuzzy
|
||||||
|
|
||||||
Set or get the fuzzy flag on the object ("check this translation").
|
Set or get the fuzzy flag on the object ("check this translation").
|
||||||
@ -557,6 +584,8 @@ General Public License version 2|perlgpl>:
|
|||||||
Appended ".kon" to $VERSION.
|
Appended ".kon" to $VERSION.
|
||||||
Added the copyright notice (from README) and this history.
|
Added the copyright notice (from README) and this history.
|
||||||
Corrected a typo in the documentation.
|
Corrected a typo in the documentation.
|
||||||
|
Documented quoting in the C<msgid>, C<msgid_plural>, C<msgstr>, and C<msgstr_n> methods.
|
||||||
|
Documented newlines in the C<comment>, C<automatic>, and C<reference> methods.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user