• Home
  • Raw
  • Download

Lines Matching +refs:po +refs:mark +refs:string +refs:function

58 @code{textdomain} function
61 @code{bindtextdomain} function
64 @code{bind_textdomain_codeset} function
93 @item po-mode marking
109 Perl parser backend offers many more string marking facilities than
138 Although this example looks like a bullet-proof case of a function
146 In this context, the string @code{gettext} looks more like a
157 function @code{gettext}. But what if the module
166 In this case, the string @code{gettext} will be interpreted as a file
168 and write the string ``Hello world!'' into it. Even advanced
180 If the module @code{Sane} exports a function @code{gettext} that does
192 Another problem is the ambiguity of the slash and the question mark.
210 pattern match, whereas the question mark may act as the ternary
218 (the slash or the question mark) in the input stream, regardless of
229 The Perl built-in function @code{wantarray} does not accept any arguments.
230 The Perl parser therefore knows that the question mark does not start
238 Now the situation is different. The function @code{wantarrays} takes
239 a variable number of arguments (like any non-prototyped Perl function).
240 The question mark is now the delimiter of a pattern match, and hence
248 Now the function is prototyped, Perl knows that it does not accept any
249 arguments, and the question mark is therefore interpreted as the
252 The Perl parser in @code{xgettext} cannot know whether a function has
254 an educated guess. If a function is known to be a Perl built-in and
255 this function does not accept any arguments, a following question mark
272 In particular, if the parser is too dumb to see that a function
362 original string in the translation database and returning the
375 is tied to the function @code{__()}. It also exports a reference
401 Perl offers a plethora of different string constructs. Those that can
452 invoke the @code{gettext} function on the output of the command
474 quotes, the string is not interpolated. If it is enclosed in double
475 quotes or has no quotes at all, the string is interpolated.
483 @cindex Perl invalid string interpolation
496 into the argument of the @code{gettext()} function. Hence, this
497 argument is not a string constant but a variable argument (@code{$0}
499 executed). The interpolation is performed by Perl before the string
503 up at runtime (except if, by accident, the interpolated string is found
507 error if it encounters a variable inside of an extracted string. In
508 general, this will happen for all kinds of string interpolations that
520 original string make it into your message catalog.
577 These escapes are only considered safe if the string consists of
590 @cindex Perl valid string interpolation
641 The @code{qq}-quoted string is recognized as an argument to @code{xgettext} in
659 In Perl, parentheses around function arguments are mostly optional.
674 # single-quoted string!
705 operator (the string concatenation operator) may come in handy:
717 Perl is smart enough to concatenate these constant string fragments
718 into one long string at compile time, and so is
723 (@samp{_}) as the string concatenation operator, and the dot
777 Likewise, you cannot @@@{[ gettext ("interpolate function calls") ]@}
783 @code{gettext} function at runtime. Yet, the Perl parser in
792 an evaluable statement. Consequently, at runtime the function
794 string ``Sunday''. Use a temporary variable as a simple workaround if
849 in your string, or if it describes a syntax, like in this one --, you can
850 mark the string as @code{no-perl-brace-format} and use @code{printf()}: