Skip to content
Snippets Groups Projects
Commit 1f31fec9 authored by Mateusz Dworowy's avatar Mateusz Dworowy
Browse files

feat: add PL translations

parent a309006f
No related branches found
No related tags found
No related merge requests found
.idea
/lang/*
!/lang/*_*.po
......@@ -15,5 +15,12 @@
"type" : "composer",
"url" : "https://gitlab.wpdesk.dev/Dworowy/xxx-hello-world.git"
}
},
"extra": {
"text-domain": "mdworowy-hello-world",
"translations-folder": "lang",
"po-files": {
"pl_PL": "pl_PL.po"
}
}
}
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2024-12-04 13:20+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pl_PL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 "
"|| n%100>14) ? 1 : 2);\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"X-Generator: Poedit 3.5\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: *.js\n"
"X-Poedit-SearchPathExcluded-1: vendor_prefixed\n"
"X-Poedit-SearchPathExcluded-2: vendor\n"
#: src/HelloWorld.php:7
msgid "Hello World!"
msgstr "Witaj świecie!"
......@@ -4,6 +4,6 @@ namespace HelloWorld;
final class HelloWorld {
public static function printHello(): string {
return "Hello World!";
return __("Hello World!", 'mdworowy-hello-world');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment