Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
e3661520
Commit
e3661520
authored
Mar 08, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lang: add mechanism to clean machine translation files
parent
75eec228
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Makefile
lang/Makefile
+5
-1
README.md
lang/README.md
+4
-0
No files found.
lang/Makefile
View file @
e3661520
...
@@ -24,13 +24,15 @@ PAGER?= less
...
@@ -24,13 +24,15 @@ PAGER?= less
all
:
all
:
@
cat
${
.CURDIR
}
/README.md |
${
PAGER
}
@
cat
${
.CURDIR
}
/README.md |
${
PAGER
}
.for
LANG
in
${LANGUAGES}
.for
LANG
in
${LANGUAGES}
${LANG}DIR
=
${
LOCALEDIR
:S/%%LANG%%/
${
LANG
}
/g
}
${LANG}DIR
=
${
LOCALEDIR
:S/%%LANG%%/
${
LANG
}
/g
}
install-${LANG}
:
install-${LANG}
:
@
mkdir
-p
${
DESTDIR
}${${
LANG
}
DIR
}
@
mkdir
-p
${
DESTDIR
}${${
LANG
}
DIR
}
${
MSGFMT
}
-o
${
DESTDIR
}${${
LANG
}
DIR
}
/OPNsense.mo
${
LANG
}
.po
${
MSGFMT
}
-o
${
DESTDIR
}${${
LANG
}
DIR
}
/OPNsense.mo
${
LANG
}
.po
clean-${LANG}
:
@
rm
-f
${
DESTDIR
}${${
LANG
}
DIR
}
/OPNsense.mo
plist-${LANG}
:
plist-${LANG}
:
@
echo
${${
LANG
}
DIR
}
/OPNsense.mo
@
echo
${${
LANG
}
DIR
}
/OPNsense.mo
...
@@ -40,6 +42,7 @@ merge-${LANG}:
...
@@ -40,6 +42,7 @@ merge-${LANG}:
sed
-i
''
-e
'/^#~.*/d'
${
LANG
}
.po
sed
-i
''
-e
'/^#~.*/d'
${
LANG
}
.po
INSTALL
+=
install-
${
LANG
}
INSTALL
+=
install-
${
LANG
}
CLEAN
+=
clean-
${
LANG
}
PLIST
+=
plist-
${
LANG
}
PLIST
+=
plist-
${
LANG
}
MERGE
+=
merge-
${
LANG
}
MERGE
+=
merge-
${
LANG
}
.endfor
.endfor
...
@@ -54,6 +57,7 @@ ${TEMPLATE}:
...
@@ -54,6 +57,7 @@ ${TEMPLATE}:
template
:
${TEMPLATE}
template
:
${TEMPLATE}
install
:
${INSTALL}
install
:
${INSTALL}
clean
:
${CLEAN}
plist
:
${PLIST}
plist
:
${PLIST}
merge
:
${MERGE}
merge
:
${MERGE}
...
...
lang/README.md
View file @
e3661520
...
@@ -19,4 +19,8 @@ Merge the latest template changes into the actual translations:
...
@@ -19,4 +19,8 @@ Merge the latest template changes into the actual translations:
# make merge
# make merge
Remove the compiled translation files from the system/chroot:
# make clean
The build system will automatically pick up all registered languages.
The build system will automatically pick up all registered languages.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment