zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
99 stars 56 forks source link

No translation generated #24

Closed ClimberBear closed 5 years ago

ClimberBear commented 5 years ago

When I execute php artisan gettext:update

it reports everything fine, but no string / msg is generated in po files

PO file for locale: en_US/messages updated successfully PO file for locale: pt_PT/messages updated successfully Finished 2 locales updated.

================ PO FILES REMAINS AS ================== msgid "" msgstr "" "Project-Id-Version: MultilanguageLaravelApplication\n" "POT-Creation-Date: 2018-12-27 14:21+0000\n" "PO-Revision-Date: 2018-12-27 14:21+0000\n" "Last-Translator: James Translator james@translations.colm\n" "Language-Team: James Translator james@translations.colm\n" "Language: enUS\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" "X-Poedit-KeywordsList: ;__;_i;_s;gettext;_n:1,2;ngettext:1,2;dgettext:2\n" "X-Poedit-Basepath: ../../../../../app\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-SearchPath-0: Http\n" "X-Poedit-SearchPath-1: ../resources/views\n" "X-Poedit-SearchPath-2: Console\n" "X-Poedit-SearchPath-3: ../storage/framework/messages/\n"

Belphemur commented 5 years ago

Hello, The command only create the po files with the project configuration, you need to use poedit to scan the project.


From: ClimberBear notifications@github.com Sent: Thursday, December 27, 2018 09:21 To: Belphemur/laravel-gettext Cc: Subscribed Subject: [Belphemur/laravel-gettext] No translation generated (#24)

When I execute php artisan gettext:update

it reports everything fine, but no string / msg is generated in po files

PO file for locale: en_US/messages updated successfully PO file for locale: pt_PT/messages updated successfully Finished 2 locales updated.

================ PO FILES REMAINS AS ================== msgid "" msgstr "" "Project-Id-Version: MultilanguageLaravelApplication\n" "POT-Creation-Date: 2018-12-27 14:21+0000\n" "PO-Revision-Date: 2018-12-27 14:21+0000\n" "Last-Translator: James Translator james@translations.colm\n" "Language-Team: James Translator james@translations.colm\n" "Language: enUS\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.4\n" "X-Poedit-KeywordsList: ;__;_i;_s;gettext;_n:1,2;ngettext:1,2;dgettext:2\n" "X-Poedit-Basepath: ../../../../../app\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-SearchPath-0: Http\n" "X-Poedit-SearchPath-1: ../resources/views\n" "X-Poedit-SearchPath-2: Console\n" "X-Poedit-SearchPath-3: ../storage/framework/messages/\n"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ClimberBear commented 5 years ago

Thanks!