Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM wordpress:6.7.1-php8.3-apache
FROM wordpress:6.8.0-php8.3-apache

RUN apt-get update && \
apt-get install -y --no-install-recommends ssl-cert && \
Expand All @@ -17,4 +17,4 @@ RUN pecl install xdebug-3.3.2 && docker-php-ext-enable xdebug \
&& echo "xdebug.idekey=IDE_DEBUG" >> ${PHP_INI_PATH}

EXPOSE 80
EXPOSE 443
EXPOSE 443
3 changes: 2 additions & 1 deletion nacc-wordpress-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Install: Drop this directory in the "wp-content/plugins/" directory and activate it. You need to specify "[NACC]" in the code section of a page or a post.
* Contributors: BMLTGuy, pjaudiomv, bmltenabled
* Authors: bmltenabled
* Version: 4.2.0
* Version: 4.2.1
* Requires PHP: 8.0
* Requires at least: 5.3
* License: GPL v2 or later
Expand Down Expand Up @@ -425,6 +425,7 @@ public static function draw_settings(): void {
'en' => 'English',
'es' => 'Español',
'it' => 'Italiano',
'pt' => 'Português',
'zh-Hans' => 'zh-Hans',
'zh-Hant' => 'zh-Hant',
]
Expand Down
1 change: 1 addition & 0 deletions nacc2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ You can call it with up to 9 input parameters, which must be called in the follo
2. A string, indicating the style. Leave blank/null for default gray. The "BT" style would be 'NA-BT', as that is the CSS name it has been given.
3. A string, with the language selector (Example: 'en' -the default-, 'es' -Spanish-, etc.). Currently, these languages are supported:
- English ("en"). This is also the default.
- Portuguese ("pt").
- Spanish ("es").
- Simplified Chinese ("zh-Hans").
- Traditional Chinese ("zh-Hant").
Expand Down
Binary file added nacc2/images/pt/01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/01_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/02_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/03_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/04_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/05_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/06_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/07_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/08.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/08_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/09_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/10_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/11_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/12_Front.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added nacc2/images/pt/13_Front.png
Binary file added nacc2/images/pt/14.png
Binary file added nacc2/images/pt/14_Front.png
Binary file added nacc2/images/pt/15.png
Binary file added nacc2/images/pt/15_Front.png
Binary file added nacc2/images/pt/16.png
Binary file added nacc2/images/pt/16_Front.png
58 changes: 58 additions & 0 deletions nacc2/nacc.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,64 @@ function NACC(inContainerElementID, inStyle, inLang, inTagLayout, inShowSpecialT
this.m_lang['it'].result_years_and_days_format = '%d anni e %d giorni.';
this.m_lang['it'].result_years_1_month_and_days_format = '%d anni, 1 mese e %d giorni.';
this.m_lang['it'].result_years_months_and_days_format = '%d anni, %d mesi e %d giorni.';

/************************************/
/* Portuguese (Brazilian) */
/************************************/
this.m_lang['pt'] = new Object();

/** This is the header, at the top. */
this.m_lang['pt'].section_title = 'Calculadora de Tempo Limpo';
/** This is the prompt over the popup menus. */
this.m_lang['pt'].prompt = 'Entre com a data que ficou limpo';
/** This is the text for the calculate button. */
this.m_lang['pt'].calculate_button_text = 'Calcular';
/** This is the text for the change layout button. */
this.m_lang['pt'].change_layout_button_text = 'Mudar Layout das Fichas';
/** This is the text for the show special tags checkbox. */
this.m_lang['pt'].change_use_special_tags_label = 'Mostrar fichas especiais';
/** These are the months, spelled out. */
this.m_lang['pt'].months = Array(
"ERROR",
"Janeiro",
"Fevereiro",
"Março",
"Abril",
"Maio",
"Junho",
"Julho",
"Agosto",
"Setembro",
"Outubro",
"Novembro",
"Dezembro"
);
/** These are for the top (days) blurb. */
this.m_lang['pt'].result_invalid = 'Selecione uma data válida!';

this.m_lang['pt'].result_1_day = 'Você está limpo há 1 dia!';
this.m_lang['pt'].result_days_format = 'Você está limpo %d dias!';

/** These are for the second (months, years and days) blurb. */
this.m_lang['pt'].result_months_format = 'Que são %d meses.';
this.m_lang['pt'].result_months_and_1_day_format = 'Que são %d meses e 1 dia.';
this.m_lang['pt'].result_months_and_days_format = 'Que são %d meses e %d dias.';
this.m_lang['pt'].result_1_year = 'Que é 1 ano.';
this.m_lang['pt'].result_1_year_and_1_day = 'Que é 1 ano e 1 dia.';
this.m_lang['pt'].result_1_year_and_1_month = 'Que é 1 ano e 1 mês.';
this.m_lang['pt'].result_1_year_1_month_and_1_day = 'Que é 1 ano, 1 mês e 1 dia.';
this.m_lang['pt'].result_1_year_months_and_1_day_format = 'Que é 1 ano, %d meses e 1 dia.';
this.m_lang['pt'].result_1_year_months_and_days_format = 'Que é 1 ano, %d meses e %d dias.';
this.m_lang['pt'].result_1_year_days_format = 'Que é 1 ano e %d dias.';
this.m_lang['pt'].result_years_format = 'Que são %d anos.';
this.m_lang['pt'].result_years_months_format = 'Que são %d anos e %d meses.';
this.m_lang['pt'].result_years_1_month_and_1_day_format = 'Que são %d anos, 1 mês e 1 dia.';
this.m_lang['pt'].result_years_months_and_1_day_format = 'Que são %d anos, %d meses e 1 dia.';
this.m_lang['pt'].result_years_and_1_month_format = 'Que são %d anos e 1 mês.';
this.m_lang['pt'].result_years_and_1_day_format = 'Que são %d anos e 1 dia.';
this.m_lang['pt'].result_years_and_days_format = 'Que são %d anos e %d dias.';
this.m_lang['pt'].result_years_1_month_and_days_format = 'Que são %d anos, 1 mês e %d dias.';
this.m_lang['pt'].result_years_months_and_days_format = 'Que são %d anos, %d meses e %d dias.';
/************************************/
/* MAIN CODE */
/************************************/
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Plugin URI: https://wordpress.org/plugins/nacc-wordpress-plugin/
Tags: na, cleantime calculator, nacc, recovery, addiction
Requires PHP: 8.0
Tested up to: 6.7
Stable tag: 4.2.0
Stable tag: 4.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -24,12 +24,16 @@ That text will be replaced with this cleantime calculator.
3. Add [nacc] shortcode to your WordPress page/post.
4. You can change the plugin settings either in the the wordpress dashboard under Settings->NACC or using shortcode attributes as explained below.
5. You can change how the plugin appears like so: `[nacc theme="NACC-BT"]`, where `theme` is currently `NACC-BT` (Dark blue and white), `NACC-GNYR2` (Light blue style customized for the Greater New York Region), or "NACC-HOLI" (Black and Red, customized for the Heart of Long Island ASC). Leave it out for default (gray).
6. You can change the language like so: `[nacc lang="es"]`, where `lang` is currently `en` (English -Default), `es` (Spanish), `zh-Hans` (Simplified Chinese), `zh-Hant` (Traditional Chinese), or `it` (Italian).
6. You can change the language like so: `[nacc lang="es"]`, where `lang` is currently `en` (English -Default), `pt` (Portuguese), `es` (Spanish), `zh-Hans` (Simplified Chinese), `zh-Hant` (Traditional Chinese), or `it` (Italian).
7. You can specify which layout (vertical or horizontal) you want the tags to appear in by default, like so: `[nacc layout="tabular"]`, where `layout` is `linear` (default, in a long line), or `tabular` (In a horizontal row).
8. You can specify whether the "special" tags are shown, like so: `[nacc special="1"]`, where `special` is `1` for true or `0` for false.

== Changelog ==

= 4.2.1 =

* Added Portuguese (Brazil), use language code pt.

= 4.2.0 =

* WP Cleanups for sanitization and escaping.
Expand Down