Commit 1746e473 authored by Canek Peláez's avatar Canek Peláez
Browse files

I10n support and Mexican Spanish translation.

parent 4ba4b55c
Loading
Loading
Loading
Loading

languages/README.md

0 → 100644
+22 −0
Original line number Diff line number Diff line
1. Generate POT file:
   ```sh
   xgettext -L PHP -d word-count -s -j *.php  --from-code=UTF-8 -k_e -k__ -o languages/word-count.pot
   ```

2. Copy POT file to `.po` file:

    ```sh
    cp languages/word-count.pot languages/ll_LL.po
    ```

3. Generate `.mo` file:

    ```sh
    msgfmt languages/ll_LL.po -o languages/ll_LL.mo
    ```

4. Update `.po` file:

    ```sh
    msgmerge -U languages/es_MX.po languages/word-count.pot
    ```

languages/es_MX.mo

0 → 100644
+980 B

File added.

No diff preview for this file type.

languages/es_MX.po

0 → 100644
+66 −0
Original line number Diff line number Diff line
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: ga-page-stats 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-20 01:02-0500\n"
"PO-Revision-Date: 2021-10-20 01:05-0500\n"
"Last-Translator: Canek Peláez <canek@ciencias.unam.mx>\n"
"Language-Team: Spanish\n"
"Language: Spanish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: class.ga-page-stats.php:26
msgid "Cannot unserialize a singleton."
msgstr "No se puede deserializar un singleton."

#: ga-page-stats.php:22
msgid "Google Analytics"
msgstr ""

#: ga-page-stats.php:21 options.php:2
msgid "Google Analytics page statistics"
msgstr "Estadísticas de página con Google Analytics"

#: options.php:59
msgid "Key file"
msgstr "Archivo de llave"

#: options.php:29
msgid "No option updated"
msgstr "Ninguna opción actualizada"

#: options.php:88
msgid "Save changes"
msgstr "Guardar cambios"

#: options.php:68
msgid "Show by default"
msgstr "Mostrar por omisión"

#: options.php:77
msgid "Show separator"
msgstr "Mostrar separador"

#: ga-page-stats.php:36
msgid "Users"
msgstr "Usuarios"

#: options.php:51
msgid "View ID"
msgstr "Identificador de vista"

#: ga-page-stats.php:35
msgid "Views"
msgstr "Vistas"

#: options.php:23
msgid "updated"
msgstr "actualizada"
+66 −0
Original line number Diff line number Diff line
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-20 01:02-0500\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=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"

#: class.ga-page-stats.php:26
msgid "Cannot unserialize a singleton."
msgstr ""

#: ga-page-stats.php:22
msgid "Google Analytics"
msgstr ""

#: ga-page-stats.php:21 options.php:2
msgid "Google Analytics page statistics"
msgstr ""

#: options.php:59
msgid "Key file"
msgstr ""

#: options.php:29
msgid "No option updated"
msgstr ""

#: options.php:88
msgid "Save changes"
msgstr ""

#: options.php:68
msgid "Show by default"
msgstr ""

#: options.php:77
msgid "Show separator"
msgstr ""

#: ga-page-stats.php:36
msgid "Users"
msgstr ""

#: options.php:51
msgid "View ID"
msgstr ""

#: ga-page-stats.php:35
msgid "Views"
msgstr ""

#: options.php:23
msgid "updated"
msgstr ""