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);
|
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) {
|
async function createPotFile(potFilePath, sources) {
|
||||||
let baseArgs = [];
|
let baseArgs = [];
|
||||||
baseArgs.push('--from-code=utf-8');
|
baseArgs.push('--from-code=utf-8');
|
||||||
|
@ -82,6 +87,7 @@ async function createPotFile(potFilePath, sources) {
|
||||||
args.push(sources[i]);
|
args.push(sources[i]);
|
||||||
const result = await execCommand('xgettext ' + args.join(' '));
|
const result = await execCommand('xgettext ' + args.join(' '));
|
||||||
if (result) console.error(result);
|
if (result) console.error(result);
|
||||||
|
await removePoHeaderDate(potFilePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,6 +95,7 @@ async function mergePotToPo(potFilePath, poFilePath) {
|
||||||
const command = 'msgmerge -U "' + poFilePath + '" "' + potFilePath + '"';
|
const command = 'msgmerge -U "' + poFilePath + '" "' + potFilePath + '"';
|
||||||
const result = await execCommand(command);
|
const result = await execCommand(command);
|
||||||
if (result) console.error(result);
|
if (result) console.error(result);
|
||||||
|
await removePoHeaderDate(poFilePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
|
|
|
@ -8,8 +8,6 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"Language: \n"
|
"Language: \n"
|
||||||
|
@ -287,40 +285,40 @@ msgstr ""
|
||||||
msgid "Displays summary about the notes and notebooks."
|
msgid "Displays summary about the notes and notebooks."
|
||||||
msgstr ""
|
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."
|
msgid "Synchronizes with remote storage."
|
||||||
msgstr ""
|
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)"
|
msgid "Sync to provided target (defaults to sync.target config value)"
|
||||||
msgstr ""
|
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."
|
msgid "For \"filesystem\" target only: Path to sync to."
|
||||||
msgstr ""
|
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."
|
msgid "Synchronisation is already in progress."
|
||||||
msgstr ""
|
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
|
#, javascript-format
|
||||||
msgid "Synchronization target: %s"
|
msgid "Synchronization target: %s"
|
||||||
msgstr ""
|
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."
|
msgid "Cannot initialize synchronizer."
|
||||||
msgstr ""
|
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..."
|
msgid "Starting synchronization..."
|
||||||
msgstr ""
|
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."
|
msgid "Done."
|
||||||
msgstr ""
|
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
|
#: /mnt/d/Web/www/joplin/ReactNativeClient/lib/synchronizer.js:60
|
||||||
msgid "Cancelling..."
|
msgid "Cancelling..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -7,8 +7,6 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: fr_FR\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."
|
msgid "Displays summary about the notes and notebooks."
|
||||||
msgstr "Afficher un résumé des notes et carnets."
|
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."
|
msgid "Synchronizes with remote storage."
|
||||||
msgstr "Synchroniser les notes et carnets."
|
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)"
|
msgid "Sync to provided target (defaults to sync.target config value)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Synchroniser avec la cible donnée (par défaut, la valeur de configuration "
|
"Synchroniser avec la cible donnée (par défaut, la valeur de configuration "
|
||||||
"`sync.target`)."
|
"`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."
|
msgid "For \"filesystem\" target only: Path to sync to."
|
||||||
msgstr ""
|
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."
|
msgid "Synchronisation is already in progress."
|
||||||
msgstr "Synchronisation est déjà en cours."
|
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
|
#, javascript-format
|
||||||
msgid "Synchronization target: %s"
|
msgid "Synchronization target: %s"
|
||||||
msgstr "Cible de la synchronisation : %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."
|
msgid "Cannot initialize synchronizer."
|
||||||
msgstr "Impossible d'initialiser le synchroniseur."
|
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..."
|
msgid "Starting synchronization..."
|
||||||
msgstr "Commencement de la synchronisation..."
|
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."
|
msgid "Done."
|
||||||
msgstr "Terminé."
|
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
|
#: /mnt/d/Web/www/joplin/ReactNativeClient/lib/synchronizer.js:60
|
||||||
msgid "Cancelling..."
|
msgid "Cancelling..."
|
||||||
msgstr "Annulation..."
|
msgstr "Annulation..."
|
||||||
|
|
|
@ -8,8 +8,6 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
"Project-Id-Version: Joplin-CLI 1.0.0\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"Language: \n"
|
"Language: \n"
|
||||||
|
@ -287,40 +285,40 @@ msgstr ""
|
||||||
msgid "Displays summary about the notes and notebooks."
|
msgid "Displays summary about the notes and notebooks."
|
||||||
msgstr ""
|
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."
|
msgid "Synchronizes with remote storage."
|
||||||
msgstr ""
|
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)"
|
msgid "Sync to provided target (defaults to sync.target config value)"
|
||||||
msgstr ""
|
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."
|
msgid "For \"filesystem\" target only: Path to sync to."
|
||||||
msgstr ""
|
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."
|
msgid "Synchronisation is already in progress."
|
||||||
msgstr ""
|
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
|
#, javascript-format
|
||||||
msgid "Synchronization target: %s"
|
msgid "Synchronization target: %s"
|
||||||
msgstr ""
|
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."
|
msgid "Cannot initialize synchronizer."
|
||||||
msgstr ""
|
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..."
|
msgid "Starting synchronization..."
|
||||||
msgstr ""
|
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."
|
msgid "Done."
|
||||||
msgstr ""
|
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
|
#: /mnt/d/Web/www/joplin/ReactNativeClient/lib/synchronizer.js:60
|
||||||
msgid "Cancelling..."
|
msgid "Cancelling..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in New Issue