Projects
Eulaceura:Factory
erlang-erlydtl
_service:obs_scm:erlang-erlydtl-0004-No-such-fu...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:erlang-erlydtl-0004-No-such-fun-gettext_compile-open_po_file-3.patch of Package erlang-erlydtl
From: Peter Lemenkov <lemenkov@gmail.com> Date: Thu, 19 May 2016 19:14:25 +0300 Subject: [PATCH] No such fun - gettext_compile:open_po_file/3 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> diff --git a/src/i18n/po_generator.erl b/src/i18n/po_generator.erl index fa7b3fb..0b2da0a 100644 --- a/src/i18n/po_generator.erl +++ b/src/i18n/po_generator.erl @@ -15,11 +15,17 @@ %% %% API Functions %% +-define(LANG_DIR, "lang"). +-define(POFILE, "gettext.po"). generate_file(Lang,Items, Fuzzy) -> Gettext_App_Name = "tmp", GtxtDir = ".", io:format("Opening po file"), - gettext_compile:open_po_file(Gettext_App_Name, GtxtDir, Lang), + DefDir = filename:join([GtxtDir, ?LANG_DIR, Gettext_App_Name, Lang]), + Fname = filename:join([DefDir, ?POFILE]), + filelib:ensure_dir(Fname), + {ok,Fd} = file:open(Fname, [write]), + put(fd,Fd), gettext_compile:write_header(), io:format("Writing entries~n"),
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2