Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xxx-hello-world
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mateusz Dworowy
xxx-hello-world
Commits
1f31fec9
Commit
1f31fec9
authored
7 months ago
by
Mateusz Dworowy
Browse files
Options
Downloads
Patches
Plain Diff
feat: add PL translations
parent
a309006f
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
composer.json
+7
-0
7 additions, 0 deletions
composer.json
lang/pl_PL.po
+28
-0
28 additions, 0 deletions
lang/pl_PL.po
src/HelloWorld.php
+1
-1
1 addition, 1 deletion
src/HelloWorld.php
with
39 additions
and
1 deletion
.gitignore
+
3
−
0
View file @
1f31fec9
.idea
/lang/*
!/lang/*_*.po
This diff is collapsed.
Click to expand it.
composer.json
+
7
−
0
View file @
1f31fec9
...
...
@@ -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"
}
}
}
This diff is collapsed.
Click to expand it.
lang/pl_PL.po
0 → 100644
+
28
−
0
View file @
1f31fec9
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!"
This diff is collapsed.
Click to expand it.
src/HelloWorld.php
+
1
−
1
View file @
1f31fec9
...
...
@@ -4,6 +4,6 @@ namespace HelloWorld;
final
class
HelloWorld
{
public
static
function
printHello
():
string
{
return
"Hello World!"
;
return
__
(
"Hello World!"
,
'mdworowy-hello-world'
)
;
}
}
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