Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ReadMailReallyFast
code
Commits
0eee1704
Verified
Commit
0eee1704
authored
5 years ago
by
Benny Baumann
Browse files
Options
Downloads
Patches
Plain Diff
chg: Mark translations as UTF-8 by default
parent
15ba1ac2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1528
failed
5 years ago
Stage: prebuild
Stage: build
Stage: testing
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+7
-3
7 additions, 3 deletions
Makefile
with
7 additions
and
3 deletions
Makefile
+
7
−
3
View file @
0eee1704
...
...
@@ -29,6 +29,8 @@ MSGINIT ?= msginit
MSGMERGE
?=
msgmerge
MSGFMT
?=
msgfmt
SED
?=
sed
SRCDIR
?=
src
APPDIR
?=
${
SRCDIR
}
/app
...
...
@@ -73,14 +75,16 @@ ${OBJDIR}/%.o: ${SRCDIR}/%.c ${DEPDIR}/%.d Makefile
${
MKDIR
}
${
@D
}
&&
${
MKDIR
}
$(
patsubst
${
OBJDIR
}
/%,
${
DEPDIR
}
/%,
${
@D
})
&&
${
CC
}
${
CFLAGS
}
${
DEPFLAGS
}
${
LFLAGS
}
-o
$@
-c
$<
&&
touch
$@
${POTDIR}/%.pot
:
${SRCDIR}/%.c
${
MKDIR
}
${
@D
}
&&
${
XGETTEXT
}
${
XGETTEXT_FLAGS
}
$(
[
-r
$@
]
&&
echo
--
-j
)
-o
$@
$<
${
MKDIR
}
${
@D
}
&&
${
XGETTEXT
}
${
XGETTEXT_FLAGS
}
$(
[
-r
$@
]
&&
echo
--
-j
)
-o
$@
$<
&&
\
${
SED
}
--expression
=
's/charset=CHARSET/charset=UTF-8/g'
--in-place
$@
${POTDIR}/%.pot
:
${SRCDIR}/%.cpp
${
MKDIR
}
${
@D
}
&&
${
XGETTEXT
}
${
XGETTEXT_FLAGS
}
$(
[
-r
$@
]
&&
echo
--
-j
)
-o
$@
$<
${
MKDIR
}
${
@D
}
&&
${
XGETTEXT
}
${
XGETTEXT_FLAGS
}
$(
[
-r
$@
]
&&
echo
--
-j
)
-o
$@
$<
&&
\
${
SED
}
--expression
=
's/charset=CHARSET/charset=UTF-8/g'
--in-place
$@
define
genlangporules
${PODIR}/$(1)/%.po
:
${POTDIR}/%.pot
$${
MKDIR
}
$${
@D
}
&&
(
[
-r
$$
<
]
&&
$${
MSGINIT
}
--no-translator
--input
=
$$
<
--locale
=
$$(
patsubst
$${
PODIR
}
/%/
$$(
patsubst
$${
POTDIR
}
/%.pot,%.po,
$$
<
)
,%,
$$
@
)
--output
=
$$
@
)
&&
(
$${
MSGMERGE
}
--update
$$
@
$$
<
)
$${
MKDIR
}
$${
@D
}
&&
(
[
-r
$$
<
]
&&
$${
MSGINIT
}
--no-translator
--input
=
$$
<
--locale
=
$$(
patsubst
$${
PODIR
}
/%/
$$(
patsubst
$${
POTDIR
}
/%.pot,%.po,
$$
<
)
,%,
$$
@
)
.UTF-8
--output
=
$$
@
)
&&
(
$${
MSGMERGE
}
--update
$$
@
$$
<
)
endef
$(
foreach
POLANG,
${
POLANGS
}
,
$(
eval
$(
call genlangporules,
$${
POLANG
})))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment