Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2825 closed enhancement (fixed)

[PATCH] Unify build.sh and build-osx-bundle.sh .po file code

Reported by: leper Owned by: leper
Priority: Nice to Have Milestone: Alpha 17
Component: Build & Packages Keywords: patch
Cc: Patch:

Description

Both build.sh and build-osx-bundle.sh remove all .po files that aren't in a list (actually in a regex currently) and need to be kept in sync so that we have the same languages available on all platforms.

This isn't optimal and the attached patch should fix that issue.

Attachments (1)

dist_langs.diff (1.7 KB ) - added by leper 10 years ago.

Download all attachments as: .zip

Change History (6)

by leper, 10 years ago

Attachment: dist_langs.diff added

comment:1 by historic_bruno, 10 years ago

I would name it something other than l10n.sh, since it deletes files and there is a chance someone runs it without knowing what it does. I will try to test the patch on OS X later today.

comment:3 by historic_bruno, 10 years ago

Keywords: patch review added
Summary: Unify build.sh and build-osx-bundle.sh .po file code[PATCH] Unify build.sh and build-osx-bundle.sh .po file code

Seems to work, though I don't understand why the l10n.sh script is called with a dot? Is that to avoid the script having executable permission?

comment:4 by leper, 10 years ago

Agreed about the name, something like remove-incomplete-translations.sh would be better.

It's just sourcing the script there (in bash we could use source, but . is more common), so we don't have to call another instance of the shell and remove the need for the file to be executable. (Also prevents users from inexpectedly executing the file).

comment:5 by leper, 10 years ago

Owner: set to leper
Resolution: fixed
Status: newclosed

In 15826:

Unify removal of incomplete translations in packaging scripts. Fixes #2825.

comment:6 by leper, 10 years ago

Keywords: review removed
Note: See TracTickets for help on using tickets.