Compare commits

...

9 Commits

5 changed files with 72 additions and 1 deletions

27
lang/C/messages.po Normal file
View File

@ -0,0 +1,27 @@
# ADDON mahjong
# Copyright (C)
# This file is distributed under the same license as the Friendica mahjong addon package.
#
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-22 10:32+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: mahjong.php:19
msgid "Mahjong Game"
msgstr ""
#: mahjong.php:37
#, php-format
msgid "Game credits: %smah - Mahjong Solitaire Game%s by ffalt (MIT license)."
msgstr ""

28
lang/de/messages.po Normal file
View File

@ -0,0 +1,28 @@
# ADDON mahjong
# Copyright (C)
# This file is distributed under the same license as the Friendica mahjong addon package.
#
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-22 10:32+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: mahjong.php:19
msgid "Mahjong Game"
msgstr "Mahjong Spiel"
#: mahjong.php:37
#, php-format
msgid "Game credits: %smah - Mahjong Solitaire Game%s by ffalt (MIT license)."
msgstr "Spiel Credits: %smah - Mahjong Solitaire Game%s von ffalt (MIT Lizenz)."

9
lang/de/strings.php Normal file
View File

@ -0,0 +1,9 @@
<?php
if(! function_exists("string_plural_select_de")) {
function string_plural_select_de($n){
$n = intval($n);
return intval($n != 1);
}}
$a->strings['Mahjong Game'] = 'Mahjong Spiel';
$a->strings['Game credits: %smah - Mahjong Solitaire Game%s by ffalt (MIT license).'] = 'Spiel Credits: %smah - Mahjong Solitaire Game%s von ffalt (MIT Lizenz).';

5
mahjong.css Normal file
View File

@ -0,0 +1,5 @@
#mahcredits {
margin-top: 20px;
margin-bottom: 20px;
font-size: 0.8em;
}

View File

@ -2,7 +2,7 @@
/**
* Name: A Mahjong Solitaire Game
* Description: A Mahjong Solitaire browsergame for your users as time sink. The gamy was developed by ffalt and is MIT licensed.
* Version: 1.0
* Version: 1.1
* Author: Tobias Diekershoff <https://f.diekershoff.de/u/tobias>
*/
@ -34,8 +34,10 @@ function mahjong_content(&$a) {
</div>
</app-root>
EOT;
$o .= '<div id="mahcredits">' . DI::l10n()->t('Game credits: %smah - Mahjong Solitaire Game%s by ffalt (MIT license).', '<a href="https://github.com/ffalt/mah" target="_new">', '</a>') . '</div>';
DI::page()['htmlhead'] .= '<script src="'.$basepath.'/runtime.js" type="module"></script>';
DI::page()['htmlhead'] .= '<script src="'.$basepath.'/polyfills.js" type="module"></script>';
DI::page()['htmlhead'] .= '<script src="'.$basepath.'/main.js" type="module"></script>';
DI::page()->registerStylesheet(__DIR__ . '/mahjong.css');
return $o;
}