mirror of https://github.com/laurent22/joplin.git
Remove date from PO POT files
parent
5ca8647d35
commit
0ed442930b
|
@ -67,6 +67,11 @@ function buildLocale(inputFile, outputFile) {
|
|||
saveToFile(outputFile, translation);
|
||||
}
|
||||
|
||||
async function removePoHeaderDate(filePath) {
|
||||
await execCommand('sed -i -e\'/POT-Creation-Date:/d\' "' + filePath + '"');
|
||||
await execCommand('sed -i -e\'/PO-Revision-Date:/d\' "' + filePath + '"');
|
||||
}
|
||||
|
||||
async function createPotFile(potFilePath, sources) {
|
||||
let baseArgs = [];
|
||||
baseArgs.push('--from-code=utf-8');
|
||||
|
@ -82,6 +87,7 @@ async function createPotFile(potFilePath, sources) {
|
|||
args.push(sources[i]);
|
||||
const result = await execCommand('xgettext ' + args.join(' '));
|
||||
if (result) console.error(result);
|
||||
await removePoHeaderDate(potFilePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -89,6 +95,7 @@ async function mergePotToPo(potFilePath, poFilePath) {
|
|||
const command = 'msgmerge -U "' + poFilePath + '" "' + potFilePath + '"';
|
||||
const result = await execCommand(command);
|
||||
if (result) console.error(result);
|
||||
await removePoHeaderDate(poFilePath);
|
||||
}
|
||||
|
||||
async function main() {
|
||||
|
|
|
@ -8,8 +8,6 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-07-19 20:00+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
|
@ -287,40 +285,40 @@ msgstr ""
|
|||
msgid "Displays summary about the notes and notebooks."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:26
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:25
|
||||
msgid "Synchronizes with remote storage."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:31
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:30
|
||||
msgid "Sync to provided target (defaults to sync.target config value)"
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:32
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:31
|
||||
msgid "For \"filesystem\" target only: Path to sync to."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:69
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:68
|
||||
msgid "Synchronisation is already in progress."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:96
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:93
|
||||
#, javascript-format
|
||||
msgid "Synchronization target: %s"
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:98
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:95
|
||||
msgid "Cannot initialize synchronizer."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:100
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:97
|
||||
msgid "Starting synchronization..."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:112
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:109
|
||||
msgid "Done."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:127
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:124
|
||||
#: /mnt/d/Web/www/joplin/ReactNativeClient/lib/synchronizer.js:60
|
||||
msgid "Cancelling..."
|
||||
msgstr ""
|
||||
|
|
|
@ -7,8 +7,6 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-07-19 19:53+0100\n"
|
||||
"PO-Revision-Date: 2017-07-18 13:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr_FR\n"
|
||||
|
@ -310,42 +308,42 @@ msgstr "Assigner la valeur [value] à la propriété <name> de la <note> donnée
|
|||
msgid "Displays summary about the notes and notebooks."
|
||||
msgstr "Afficher un résumé des notes et carnets."
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:26
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:25
|
||||
msgid "Synchronizes with remote storage."
|
||||
msgstr "Synchroniser les notes et carnets."
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:31
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:30
|
||||
msgid "Sync to provided target (defaults to sync.target config value)"
|
||||
msgstr ""
|
||||
"Synchroniser avec la cible donnée (par défaut, la valeur de configuration "
|
||||
"`sync.target`)."
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:32
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:31
|
||||
msgid "For \"filesystem\" target only: Path to sync to."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:69
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:68
|
||||
msgid "Synchronisation is already in progress."
|
||||
msgstr "Synchronisation est déjà en cours."
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:96
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:93
|
||||
#, javascript-format
|
||||
msgid "Synchronization target: %s"
|
||||
msgstr "Cible de la synchronisation : %s"
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:98
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:95
|
||||
msgid "Cannot initialize synchronizer."
|
||||
msgstr "Impossible d'initialiser le synchroniseur."
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:100
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:97
|
||||
msgid "Starting synchronization..."
|
||||
msgstr "Commencement de la synchronisation..."
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:112
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:109
|
||||
msgid "Done."
|
||||
msgstr "Terminé."
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:127
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:124
|
||||
#: /mnt/d/Web/www/joplin/ReactNativeClient/lib/synchronizer.js:60
|
||||
msgid "Cancelling..."
|
||||
msgstr "Annulation..."
|
||||
|
|
|
@ -8,8 +8,6 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2017-07-19 20:00+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
|
@ -287,40 +285,40 @@ msgstr ""
|
|||
msgid "Displays summary about the notes and notebooks."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:26
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:25
|
||||
msgid "Synchronizes with remote storage."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:31
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:30
|
||||
msgid "Sync to provided target (defaults to sync.target config value)"
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:32
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:31
|
||||
msgid "For \"filesystem\" target only: Path to sync to."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:69
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:68
|
||||
msgid "Synchronisation is already in progress."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:96
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:93
|
||||
#, javascript-format
|
||||
msgid "Synchronization target: %s"
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:98
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:95
|
||||
msgid "Cannot initialize synchronizer."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:100
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:97
|
||||
msgid "Starting synchronization..."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:112
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:109
|
||||
msgid "Done."
|
||||
msgstr ""
|
||||
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:127
|
||||
#: /mnt/d/Web/www/joplin/CliClient/app/command-sync.js:124
|
||||
#: /mnt/d/Web/www/joplin/ReactNativeClient/lib/synchronizer.js:60
|
||||
msgid "Cancelling..."
|
||||
msgstr ""
|
||||
|
|
Loading…
Reference in New Issue