fix: better way to validate the config, add options to git clone

This commit is contained in:
ngn
2024-05-01 23:07:02 +03:00
parent 5691727d64
commit bdd1ee23d8
7 changed files with 230 additions and 83 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-05-01 20:59+0300\n"
"POT-Creation-Date: 2024-05-01 23:04+0300\n"
"PO-Revision-Date: 2024-05-01 13:34+0300\n"
"Last-Translator: <ngn@ngn.tf>\n"
"Language-Team: Turkish <gnome-turk@gnome.org>\n"
@ -23,76 +23,100 @@ msgstr ""
#: src/config.c:18
#, c-format
msgid "Configuration target %s does not have \"dst\" field"
msgid "Configuration target \"%s\" does not have \"dst\" field"
msgstr ""
#: src/config.c:23
#, c-format
msgid "Configuration target %s does not have \"src\" field"
msgid "Configuration target \"%s\" does not have \"src\" field"
msgstr ""
#: src/config.c:53
#: src/config.c:32
msgid "Configuration does not have a name field"
msgstr ""
#: src/config.c:58
#: src/config.c:37
msgid "Configuration does not have an author field"
msgstr ""
#: src/config.c:63
#: src/config.c:42
msgid "Configuration does not have any targets"
msgstr ""
#: src/config.c:117
#: src/config.c:120
#, c-format
msgid "Key %s is unknown"
msgstr ""
#: src/config.c:160
#: src/config.c:156
msgid "Configuration file not found"
msgstr ""
#: src/config.c:170
msgid "Failed to parse configuration file"
msgstr ""
#: src/main.c:66
#: src/log.c:150
msgid "y"
msgstr ""
#: src/log.c:150
msgid "Y"
msgstr ""
#: src/log.c:152
msgid "n"
msgstr ""
#: src/log.c:152
msgid "N"
msgstr ""
#: src/log.c:155
msgid "Please answer with y/n"
msgstr ""
#: src/main.c:74
#, c-format
msgid "Failed to access paths (%s)"
msgstr ""
#: src/main.c:74
#: src/main.c:82
msgid "Failed to lock, mc is already running"
msgstr ""
#: src/main.c:77
#: src/main.c:85
msgid "Failed to lock, did you mess up your directory permissions?"
msgstr ""
#: src/main.c:86
#, c-format
msgid "%s: command failed"
msgstr ""
#: src/main.c:90
#, c-format
msgid "%s: command successful"
msgstr ""
#: src/main.c:94
#, c-format
msgid "MatterLinux Configuration Manager (%s)"
msgstr ""
#: src/main.c:95
msgid "Different operations are done using different commands\n"
msgid "%s: command failed"
msgstr ""
#: src/main.c:98
msgid "pull down a configuration"
#, c-format
msgid "%s: command successful"
msgstr ""
#: src/main.c:101
msgid "build the configuration in the current directory"
#: src/main.c:102
#, c-format
msgid "MatterLinux Configuration Manager (%s)"
msgstr ""
#: src/main.c:103
msgid "Different operations are done using different commands\n"
msgstr ""
#: src/main.c:106
msgid "pull down a configuration"
msgstr ""
#: src/main.c:109
msgid "build the configuration in the current directory"
msgstr ""
#: src/main.c:111
msgid ""
"Licensed under GPLv3, see <https://www.gnu.org/licenses/> for more "
"information"
@ -102,21 +126,58 @@ msgstr ""
msgid "Please specify a config name or a URL"
msgstr ""
#: src/pull.c:55
#: src/pull.c:56
#, c-format
msgid "Cloning %s"
msgstr ""
#: src/pull.c:60
#: src/pull.c:61
#, c-format
msgid "Failed to clone the %s: %s"
msgid "Failed to clone the %s:"
msgstr ""
#: src/pull.c:70
#: src/pull.c:72
#, c-format
msgid "Failed to chdir to %s"
msgstr ""
#: src/pull.c:76
#: src/pull.c:77
msgid "Failed to load the configuration file (mc.cfg):"
msgstr ""
#: src/pull.c:82
msgid "Loaded repository configuration"
msgstr ""
#: src/pull.c:83
msgid "Configuration details:\n"
msgstr ""
#: src/pull.c:84
msgid "Name"
msgstr ""
#: src/pull.c:85
msgid "Author"
msgstr ""
#: src/pull.c:87
msgid "Keywords"
msgstr ""
#: src/pull.c:92
msgid "Do you want to continue?"
msgstr ""
#: src/pull.c:95
msgid "Checking all the targets"
msgstr ""
#: src/pull.c:99
#, c-format
msgid "Failed to access the source for the target \"%s\""
msgstr ""
#: src/pull.c:105
msgid "All the targets are OK"
msgstr ""