Weblate-4.5.3
Total Page:16
File Type:pdf, Size:1020Kb
The Weblate Manual 4.5.3 Michal Čihař 20210401 Weblate Weblate 1 : GNU gettext Android string resources1 Component configuration : ../devel/integration : 1. 2. 3. 2.5 . : 1 : > Weblate Weblate : : settings.py : SINGLE_PROJECT Weblate 2 VCS : : UI 3 : 4 : 5 Component configuration Web : VCS editor://open/?file={{filename}}&line={{line}} : URL Nette documentation : 2 DE- FAULT_AUTO_WATCH : 6 7 Weblate : Weblate : Weblate GitLab GitHubGoogleFacebookBitbucket OAuth 2.0 8 9 ENABLE_AVATARS https://gravatar.com/ API API IP : Weblate Weblate 2 : : : 10 11 : Weblate 3 : Markdown @mention : report-source : variants : : labels : (X) () () weblate 1 "car" 1 "cars" 2 Weblate Weblate Unicode Language Plural Rules : 12 13 2.18 : 2.18 : Alt+Home Alt+End Alt+PageUp or 1 Ctrl ↑ or Alt ↑ or Cmd ↑ Alt+PageDown or Ctrl+↓ or Alt+↓ or Cmd+↓ Alt+Enter or Ctrl+Enter or Cmd+Enter Ctrl+Shift+Enter or Cmd+Shift+Enter Ctrl+E or Cmd+E Ctrl+U or Cmd+U Ctrl+M or : Cmd+M Ctrl+1 to Ctrl+9 or Cmd+1 to Cmd+9 Ctrl+M+1 to 9 or Cmd+M+1 to 9 Ctrl+I+1 to 9 or 1 Cmd+I+1 to 9 Ctrl+J or Cmd+J Ctrl+S or Cmd+S Ctrl+O or Cmd+O Ctrl+Y or Cmd+Y 3 : Weblate RTL SPECIAL_CHARS 14 IDmsgctxt Weblate : Visual context for strings : : Weblate 15 Weblate 10 LIMIT_TRANSLATION_LENGTH_BY_SOURCE_LENGTH Weblate Bilingual and monolingual formats : : Weblate 1 : : 16 2 : Weblate : : WEB : Keeping translations same across components 17 : : 2 1 : : : : labels : : Bulk edit addon : Available options might be limited by access control settings. The first option is to download the file in the original format as it is stored in the repository. In this case, any pending changes in the translation are getting committed and the up-to-date file is yield without any conversions. Weblate ↓ gettext PO gettext XLIFF XLIFF 1.1 TermBase eXchange Translation Memory eXchange gettext MO CSV Excel Open XML JSON Android iOS 18 : GET /api/translations/(string:project)/(string:component)/ (string:language)/file/ 19 : / : POT PO msgmerge Add as translation 2 20 : POST /api/translations/(string:project)/(string:component)/ (string:language)/file/ 1 Each project can include one or more glossaries as a shorthand for storing terminology. Glossary easify maintaining consistency of the translation. 4.5 : Weblate 1 The glossary component looks like any other component in Weblate with added colored label: 21 : Tools 4.5 . ↓ : 22 4.5 . ↓ : 4.5 . Flagging certain glossary terms as terminology by bulk-editing, typing in the flag, or or by using Tools ↓:guil- abel:Mark as terminology adds entries for them to all languages in the glossary. Use this for important terms that should be well thought out, and retain a consistent meaning across all languages. : Variants are a generic way to group strings together. All term variants are listed in the glossary sidebar when trans- lating. : You can use this to add abbreviations or shorter expressions for a term. : variants 23 24 Weblate : AUTOFIX_LIST Weblate : CHECK_LIST BBcode BBcode BBCode BBCode : BBcode 2 4.1 . : : Weblate 4.5 . check-glossary : : Weblate : 25 Weblate : C 'c-format'Gettext PO xgettext : Additional info on source stringsComponent configuration : Weblate : 26 AngularJS AngularJS Your balance is {{amount}} {{ currency }} angularjs-format : AngularJS text interpolation 27 C C There are %d apples Your balance is %1$d %2$s c-format : C format strings C printf format C# C# There are {0} apples c-sharp-format : C# String Format ECMAScript ECMAScript There are ${number} apples es-format : Template literals i18next i18next 4.0 . There are {{number}} apples There are $t(number) apples i18next-interpolation : i18next interpolation Java Java There are %d apples Your balance is %1$d %2$s java-format : Java Format Strings 28 Java MessageFormat Java There are {0} apples java-messageformat auto-java-messageformat : Java MessageFormat JavaScript JavaScript There are %d apples javascript-format : JavaScript formatting strings Lua Lua There are %d apples lua-format : Lua 4.0 . There are %number% apples percent-placeholders Perl Perl There are %d apples Your balance is %1$d %2$s perl-format : Perl sprintf Perl Format Strings 29 PHP PHP There are %d apples Your balance is %1$d %2$s php-format : PHP sprintf documentation PHP Format Strings Python Python There are {} apples Your balance is {amount} {currency} python-brace-format : Python brace formatPython Format Strings Python Python There are %d apples Your balance is %(amount) %(currency) python-format : Python string formattingPython Format Strings Qt Qt There are %1 apples qt-format : Qt QString::arg() Qt Qt There are %Ln apple(s) qt-plural-format : Qt i18n guide 30 Ruby Ruby There are %d apples Your balance is %1$f %2$s Your balance is %+.2<amount>f %<currency>s Your balance is %{amount} %{currency} ruby-format : Ruby Kernel#sprintf Scheme Scheme There are ~d apples scheme-format : Srfi 28, Chicken Scheme format, Guile Scheme formatted output Vue I18n Vue I18n There are {count} apples Rails i18n There are %{count} apples @:message.dio @:message.the_world! vue-format : Vue I18n Formatting Vue I18n Linked locale messages VCS VCS Weblate 1 : : Keeping translations same across components 31 Kashida Kashida 3.5 . Kashida Tatweel : Kashida Wikipedia : Markdown Markdown 3.5 . Markdown : Markdown links Markdown Markdown 3.5 . Markdown : Markdown links Markdown Markdown 3.5 . Markdown : Markdown span elements max-length:100 key:value : replacements: 32 3.7 . 1 2 1 font-* : ubuntu 22 2 500 : max-size:500:2, font-family:ubuntu, font-size:22 : Component configuration font-* replacements: : \n \n \n : Wikipedia : 3 (…) (...) 3 : Wikipedia : : Wikipedia : 33 : Wikipedia : : Wikipedia : : Wikipedia : \n 3.9 . 4.3 : placeholders placeholders:$URL$:$TARGET$:"some long text" : placeholders:r"%[^% ]%" : 34 3.9 . : Wikipedia : 3.9 . regex regex:^foo|bar$ : : 35 1 1 strict- same : Component configuration HTML HTML 3.9 . HTML safe-html : autofixer : HTML Mozilla Bleach library URL URL 3.5 . URL URL URL XML XML XML XML XML 2.8 . XML <U+200B> : Wikipedia : 36 (…) 3 (...) (…) 3 (...) Unicode : Wikipedia : 4.1 . 4.1 . Python Gettext : from gettext import ngettext print ngettext("Selected %d file", "Selected %d files", files) % files 3.9 . 37 (') (") : : "this is a quoted string" 'another quoted string' Weblate approved, translated, needs-editing, empty, read-only VCS - plural, context, suggestion, comment, check, dismissed-check, transla- tion, variant, screenshot, flags, explanation, glossary pending, translated, untranslated 38 : : URL changed change_action change_time ANDORNOT: state:translated AND (source:hello OR source:bar) : translated approved 2019 = hello world source:="hello world" 1 hello source:=hello 4.4 .