Labs/Ubiquity/Ubiquity 0.5 Command Localization Tutorial: Difference between revisions

Line 67: Line 67:


==== Inline strings ====
==== Inline strings ====
Inline strings are those strings which are used in a command's <code>preview</code> or <code>execute</code> methods. As such, they always have <code>msgctxt</code> of "command name<code>.preview</code>" or "command name<code>.execute</code>". As there may be many different localizable strings in each of these methods, there can be multiple different translation entries in commands with this same <code>msgctxt</code> but they will each have unique <code>msgid</code>'s.


=== Multiline strings ===
=== Multiline strings ===
308

edits