Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions 3/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Your Crowdin credentials.
#
project_id_env : CROWDIN_PROJECT_ID
api_token_env : CROWDIN_PERSONAL_TOKEN
base_path : "."
base_url_env : CROWDIN_BASE_URL

#
# Choose file structure in Crowdin.
#
preserve_hierarchy : true

#
# Use YAML anchor to implement the global languages mapping.
#
languages_mapping: &languages_mapping
locale:
zh-CN: zh_CN
zh-TW: zh_TW

#
# Files configuration
#
files:
- source: /locale/pot/**/*.pot
translation: /.crowdin/%locale%/**/%file_name%.po
languages_mapping: *languages_mapping
73 changes: 73 additions & 0 deletions 3/locale/pot/LC_MESSAGES/cmds/_.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2023, fish-shell developers
# This file is distributed under the same license as the fish-shell package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: fish-shell 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-11 04:07+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../../cmds/_.rst:4
msgid "_ - call fish's translations"
msgstr ""

#: ../../../cmds/_.rst:7
msgid "Synopsis"
msgstr ""

#: ../../../cmds/_.rst:9
msgid "_ STRING"
msgstr ""

#: ../../../cmds/_.rst:14
msgid "Description"
msgstr ""

#: ../../../cmds/_.rst:16
msgid "``_`` translates its arguments into the current language, if possible."
msgstr ""

#: ../../../cmds/_.rst:18
msgid ""
"It is equivalent to ``gettext fish STRING``, meaning it can only be used to "
"look up fish's own translations."
msgstr ""

#: ../../../cmds/_.rst:20
msgid ""
"It requires fish to be built with gettext support. If that support is "
"disabled, or there is no translation it will simply echo the argument back."
msgstr ""

#: ../../../cmds/_.rst:22
msgid ""
"The language depends on the current locale, set with :envvar:`LANG` and :"
"envvar:`LC_MESSAGES`."
msgstr ""

#: ../../../cmds/_.rst:26
msgid "Options"
msgstr ""

#: ../../../cmds/_.rst:28
msgid "``_`` takes no options."
msgstr ""

#: ../../../cmds/_.rst:31
msgid "Examples"
msgstr ""

#: ../../../cmds/_.rst:35
msgid ""
"> _ File\n"
"Datei"
msgstr ""
292 changes: 292 additions & 0 deletions 3/locale/pot/LC_MESSAGES/cmds/abbr.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,292 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2023, fish-shell developers
# This file is distributed under the same license as the fish-shell package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: fish-shell 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-03-11 04:07+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: ../../../cmds/abbr.rst:4
msgid "abbr - manage fish abbreviations"
msgstr ""

#: ../../../cmds/abbr.rst:7
msgid "Synopsis"
msgstr ""

#: ../../../cmds/abbr.rst:9
msgid ""
"abbr --add NAME [--position command | anywhere] [-r | --regex PATTERN]\n"
" [--set-cursor[=MARKER]] ([-f | --function FUNCTION] | "
"EXPANSION)\n"
"abbr --erase NAME ...\n"
"abbr --rename OLD_WORD NEW_WORD\n"
"abbr --show\n"
"abbr --list\n"
"abbr --query NAME ..."
msgstr ""

#: ../../../cmds/abbr.rst:20
msgid "Description"
msgstr ""

#: ../../../cmds/abbr.rst:22
msgid ""
"``abbr`` manages abbreviations - user-defined words that are replaced with "
"longer phrases when entered."
msgstr ""

#: ../../../cmds/abbr.rst:25
msgid ""
"Only typed-in commands use abbreviations. Abbreviations are not expanded in "
"scripts."
msgstr ""

#: ../../../cmds/abbr.rst:27
msgid ""
"For example, a frequently-run command like ``git checkout`` can be "
"abbreviated to ``gco``. After entering ``gco`` and pressing :kbd:`Space` or :"
"kbd:`Enter`, the full text ``git checkout`` will appear in the command line. "
"To avoid expanding something that looks like an abbreviation, the default :"
"kbd:`Control`\\ +\\ :kbd:`Space` binding inserts a space without expanding."
msgstr ""

#: ../../../cmds/abbr.rst:31
msgid ""
"An abbreviation may match a literal word, or it may match a pattern given by "
"a regular expression. When an abbreviation matches a word, that word is "
"replaced by new text, called its *expansion*. This expansion may be a fixed "
"new phrase, or it can be dynamically created via a fish function. This "
"expansion occurs after pressing space or enter."
msgstr ""

#: ../../../cmds/abbr.rst:33
msgid ""
"Combining these features, it is possible to create custom syntaxes, where a "
"regular expression recognizes matching tokens, and the expansion function "
"interprets them. See the `Examples`_ section."
msgstr ""

#: ../../../cmds/abbr.rst:35
msgid ""
"Previous versions of this allowed saving abbreviations in universal "
"variables. That's no longer possible. Existing variables will still be "
"imported and ``abbr --erase`` will also erase the variables. We recommend "
"adding abbreviations to :ref:`config.fish <configuration>` by just adding "
"the ``abbr --add`` command. When you run ``abbr``, you will see output like "
"this"
msgstr ""

#: ../../../cmds/abbr.rst:43
msgid ""
"> abbr\n"
"abbr -a -- foo bar # imported from a universal variable, see `help abbr`"
msgstr ""

#: ../../../cmds/abbr.rst:46
msgid ""
"In that case you should take the part before the ``#`` comment and save it "
"in :ref:`config.fish <configuration>`, then you can run ``abbr --erase`` to "
"remove the universal variable::"
msgstr ""

#: ../../../cmds/abbr.rst:49
msgid ""
"> abbr >> ~/.config/fish/config.fish\n"
"> abbr --erase (abbr --list)"
msgstr ""

#: ../../../cmds/abbr.rst:54
msgid "\"add\" subcommand"
msgstr ""

#: ../../../cmds/abbr.rst:56
msgid ""
"abbr [-a | --add] NAME [--position command | anywhere] [-r | --regex "
"PATTERN]\n"
" [--set-cursor[=MARKER]] ([-f | --function FUNCTION] | EXPANSION)"
msgstr ""

#: ../../../cmds/abbr.rst:61
msgid ""
"``abbr --add`` creates a new abbreviation. With no other options, the string "
"**NAME** is replaced by **EXPANSION**."
msgstr ""

#: ../../../cmds/abbr.rst:63
msgid ""
"With **--position command**, the abbreviation will only expand when it is "
"positioned as a command, not as an argument to another command. With **--"
"position anywhere** the abbreviation may expand anywhere in the command "
"line. The default is **command**."
msgstr ""

#: ../../../cmds/abbr.rst:65
msgid ""
"With **--regex**, the abbreviation matches using the regular expression "
"given by **PATTERN**, instead of the literal **NAME**. The pattern is "
"interpreted using PCRE2 syntax and must match the entire token. If multiple "
"abbreviations match the same token, the last abbreviation added is used."
msgstr ""

#: ../../../cmds/abbr.rst:67
msgid ""
"With **--set-cursor=MARKER**, the cursor is moved to the first occurrence of "
"**MARKER** in the expansion. The **MARKER** value is erased. The **MARKER** "
"may be omitted (i.e. simply ``--set-cursor``), in which case it defaults to "
"``%``."
msgstr ""

#: ../../../cmds/abbr.rst:69
msgid ""
"With **-f FUNCTION** or **--function FUNCTION**, **FUNCTION** is treated as "
"the name of a fish function instead of a literal replacement. When the "
"abbreviation matches, the function will be called with the matching token as "
"an argument. If the function's exit status is 0 (success), the token will be "
"replaced by the function's output; otherwise the token will be left "
"unchanged. No **EXPANSION** may be given separately."
msgstr ""

#: ../../../cmds/abbr.rst:73
msgid "Examples"
msgstr ""

#: ../../../cmds/abbr.rst:77
msgid "abbr --add gco git checkout"
msgstr ""

#: ../../../cmds/abbr.rst:79
msgid ""
"Add a new abbreviation where ``gco`` will be replaced with ``git checkout``."
msgstr ""

#: ../../../cmds/abbr.rst:83
msgid "abbr -a --position anywhere -- -C --color"
msgstr ""

#: ../../../cmds/abbr.rst:85
msgid ""
"Add a new abbreviation where ``-C`` will be replaced with ``--color``. The "
"``--`` allows ``-C`` to be treated as the name of the abbreviation, instead "
"of an option."
msgstr ""

#: ../../../cmds/abbr.rst:89
msgid "abbr -a L --position anywhere --set-cursor \"% | less\""
msgstr ""

#: ../../../cmds/abbr.rst:91
msgid ""
"Add a new abbreviation where ``L`` will be replaced with ``| less``, placing "
"the cursor before the pipe."
msgstr ""

#: ../../../cmds/abbr.rst:96
msgid ""
"function last_history_item\n"
" echo $history[1]\n"
"end\n"
"abbr -a !! --position anywhere --function last_history_item"
msgstr ""

#: ../../../cmds/abbr.rst:101
msgid ""
"This first creates a function ``last_history_item`` which outputs the last "
"entered command. It then adds an abbreviation which replaces ``!!`` with the "
"result of calling this function. Taken together, this is similar to the ``!!"
"`` history expansion feature of bash."
msgstr ""

#: ../../../cmds/abbr.rst:105
msgid ""
"function vim_edit\n"
" echo vim $argv\n"
"end\n"
"abbr -a vim_edit_texts --position command --regex \".+\\.txt\" --function "
"vim_edit"
msgstr ""

#: ../../../cmds/abbr.rst:110
msgid ""
"This first creates a function ``vim_edit`` which prepends ``vim`` before its "
"argument. It then adds an abbreviation which matches commands ending in ``."
"txt``, and replaces the command with the result of calling this function. "
"This allows text files to be \"executed\" as a command to open them in vim, "
"similar to the \"suffix alias\" feature in zsh."
msgstr ""

#: ../../../cmds/abbr.rst:114
msgid ""
"abbr 4DIRS --set-cursor=! \"$(string join \\n -- 'for dir in */' 'cd $dir' "
"'!' 'cd ..' 'end')\""
msgstr ""

#: ../../../cmds/abbr.rst:116
msgid ""
"This creates an abbreviation \"4DIRS\" which expands to a multi-line loop "
"\"template.\" The template enters each directory and then leaves it. The "
"cursor is positioned ready to enter the command to run in each directory, at "
"the location of the ``!``, which is itself erased."
msgstr ""

#: ../../../cmds/abbr.rst:119
msgid "Other subcommands"
msgstr ""

#: ../../../cmds/abbr.rst:124
msgid "abbr --rename OLD_NAME NEW_NAME"
msgstr ""

#: ../../../cmds/abbr.rst:126
msgid "Renames an abbreviation, from *OLD_NAME* to *NEW_NAME*"
msgstr ""

#: ../../../cmds/abbr.rst:130
msgid "abbr [-s | --show]"
msgstr ""

#: ../../../cmds/abbr.rst:132
msgid "Show all abbreviations in a manner suitable for import and export"
msgstr ""

#: ../../../cmds/abbr.rst:136
msgid "abbr [-l | --list]"
msgstr ""

#: ../../../cmds/abbr.rst:138
msgid "Prints the names of all abbreviation"
msgstr ""

#: ../../../cmds/abbr.rst:142
msgid "abbr [-e | --erase] NAME"
msgstr ""

#: ../../../cmds/abbr.rst:144
msgid "Erases the abbreviation with the given name"
msgstr ""

#: ../../../cmds/abbr.rst:148
msgid "abbr -q or --query [NAME...]"
msgstr ""

#: ../../../cmds/abbr.rst:150
msgid "Return 0 (true) if one of the *NAME* is an abbreviation."
msgstr ""

#: ../../../cmds/abbr.rst:154
msgid "abbr -h or --help"
msgstr ""

#: ../../../cmds/abbr.rst:156
msgid "Displays help for the `abbr` command."
msgstr ""
Loading