Skip to content

Commit d17211f

Browse files
committed
Allow customizing the separator used in .po file names.
1 parent 6401530 commit d17211f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/vibe/web/i18n.d

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ html
143143
144144
See_Also: `translationContext`
145145
*/
146-
mixin template translationModule(string FILENAME)
146+
mixin template translationModule(string FILENAME, string language_separator = ".")
147147
{
148148
static import std.string;
149149
enum NAME = std.string.tr(FILENAME, `/.\\-`, "____");
150150
private static string file_mixins() {
151151
string ret;
152152
foreach (language; languages)
153-
ret ~= "enum "~language~"_"~NAME~" = extractDeclStrings(import(`"~FILENAME~"."~language~".po`));\n";
153+
ret ~= "enum "~language~"_"~NAME~" = extractDeclStrings(import(`"~FILENAME~language_separator~language~".po`));\n";
154154
return ret;
155155
}
156156

0 commit comments

Comments
 (0)