Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: let Travis CI build release archives #1

Closed
wants to merge 89 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
ca5e98d
Composer: explicitly import katzgrau/klogger (already included in net…
ArthurHoaro Oct 20, 2020
b38a1b0
Use PSR-3 logger for login attempts
ArthurHoaro Oct 20, 2020
0cf76cc
Feature: add a Server administration page
ArthurHoaro Oct 21, 2020
820cae2
Merge pull request #1601 from ArthurHoaro/feature/psr3
ArthurHoaro Oct 24, 2020
42a72c0
Replaced PHP_EOL to "\n"
GaneshKandu Oct 27, 2020
e69e3fe
Removed PHP_EOL
GaneshKandu Oct 27, 2020
034c1ce
Merge pull request #1609 from GaneshKandu/patch-1
ArthurHoaro Oct 27, 2020
e6215a2
Merge pull request #1604 from ArthurHoaro/feature/server-admin-page
ArthurHoaro Oct 27, 2020
9c04921
Feature: Share private bookmarks using a URL containing a private key
ArthurHoaro Oct 16, 2020
977db7e
Merge pull request #1597 from ArthurHoaro/feature/share-private-bookmark
ArthurHoaro Oct 27, 2020
c2cd15d
Move utils classes to Shaarli\Helper namespace and folder
ArthurHoaro Oct 16, 2020
36e6d88
Feature: add weekly and monthly view/RSS feed for daily page
ArthurHoaro Oct 16, 2020
54afb1d
Fix rebase issue
ArthurHoaro Oct 27, 2020
b8e5a25
Merge pull request #1595 from ArthurHoaro/feature/daily-period
ArthurHoaro Oct 27, 2020
5d8de75
Feature: bulk creation of bookmarks
ArthurHoaro Oct 10, 2020
25e90d8
Bulk creation: fix private status based on the first form
ArthurHoaro Oct 11, 2020
c609944
Bulk creation: improve performances using memoization
ArthurHoaro Oct 23, 2020
6a71675
Bulk creation: displays a progress bar when saving all displayed forms
ArthurHoaro Oct 23, 2020
34c8f55
Bulk creation: ignore blank lines
ArthurHoaro Oct 23, 2020
b2b5ef3
Merge pull request #1587 from ArthurHoaro/feature/batch-bookmark-crea…
ArthurHoaro Oct 27, 2020
358cb20
Plugin wallabag: minor improvements
ArthurHoaro Oct 24, 2020
ff96860
Include php-simplexml in Docker image
ArthurHoaro Oct 28, 2020
06734af
Merge pull request #1612 from ArthurHoaro/hotfix/simplexml
ArthurHoaro Oct 28, 2020
156061d
Raise 404 error instead of 500 if permalink access is denied
ArthurHoaro Oct 28, 2020
d2bb40c
Merge pull request #1613 from ArthurHoaro/hotfix/404-not-authorized
ArthurHoaro Oct 28, 2020
d3f6d52
Fix compatiliby issue on login with PHP 7.1
ArthurHoaro Oct 28, 2020
1ca7ddd
Merge pull request #1614 from ArthurHoaro/hotfix/php71-compat-login
ArthurHoaro Oct 28, 2020
114a43b
Remove unnecessary escape of referer
ArthurHoaro Oct 28, 2020
14c9370
Merge pull request #1615 from ArthurHoaro/hotfix/save-redirect
ArthurHoaro Oct 28, 2020
b37ca79
postLink: change relative path to absolute path
dimtion Oct 29, 2020
dff0390
Merge pull request #1616 from dimtion/fix-api-redirect
ArthurHoaro Oct 29, 2020
b862705
UT: fix formatting issue when the current day has a single digit
ArthurHoaro Nov 2, 2020
b7ec157
Merge pull request #1618 from ArthurHoaro/fix/ut-daily-date-1-digit
ArthurHoaro Nov 2, 2020
38b55fb
Merge pull request #1610 from ArthurHoaro/fix/wallabag
ArthurHoaro Nov 3, 2020
1a94978
Fix French translation
ArthurHoaro Nov 3, 2020
740b32b
Default formatter: add a setting to disable auto-linkification
ArthurHoaro Nov 3, 2020
330ac85
Fix: redirect to referrer after bookmark deletion
ArthurHoaro Nov 5, 2020
a4a59e1
Merge pull request #1619 from ArthurHoaro/fix/translations
ArthurHoaro Nov 5, 2020
47d1581
Merge pull request #1624 from ArthurHoaro/fix/delete-redirect
ArthurHoaro Nov 5, 2020
8bbf57a
Merge pull request #1620 from ArthurHoaro/feature/no-auto-link
ArthurHoaro Nov 5, 2020
5f987a6
Fix confirm popup before bookmark deletion
ArthurHoaro Nov 5, 2020
a5a4fb1
Merge pull request #1625 from ArthurHoaro/fix/delete-confirm-popup
ArthurHoaro Nov 5, 2020
c61d8a8
Webpack: fix vintage theme images include
ArthurHoaro Nov 5, 2020
48df9f4
Merge pull request #1626 from ArthurHoaro/fix/vintage-webpack
ArthurHoaro Nov 5, 2020
b3bd8c3
Feature: support any tag separator
ArthurHoaro Oct 22, 2020
6733933
Bump shaarli/netscape-bookmark-parser dependency version
ArthurHoaro Nov 3, 2020
df9aac5
Tags separator: vintage theme compatibility
ArthurHoaro Nov 5, 2020
8a1ce1d
ESLint
ArthurHoaro Nov 5, 2020
cfdd209
Display error details even with dev.debug set to false
ArthurHoaro Nov 5, 2020
8c5f6c7
Merge pull request #1627 from ArthurHoaro/fix/unexpected-error
ArthurHoaro Nov 6, 2020
ce901a5
Reviewed nginx configuration
ArthurHoaro Nov 7, 2020
9952de2
Replace vimeo link in demo bookmarks due to IP ban on the demo instance
ArthurHoaro Nov 8, 2020
8a97960
Reviewed Apache configuration
ArthurHoaro Nov 8, 2020
00d3dd9
Fix an issue truncating extracted metadata content
ArthurHoaro Nov 8, 2020
8d8fa89
Merge pull request #1631 from ArthurHoaro/fix/html-extract-quote-fix
ArthurHoaro Nov 8, 2020
c51d652
Merge pull request #1629 from ArthurHoaro/fix/demo-vimeo
ArthurHoaro Nov 8, 2020
d9d71b1
Merge pull request #1621 from ArthurHoaro/feature/tag-separators
ArthurHoaro Nov 8, 2020
e09bb93
Coding style: switch PHPCS to PSR12
ArthurHoaro Sep 22, 2020
b7c50a5
Docker-compose: fix SSL certificate + add parameter for Docker tag
ArthurHoaro Nov 9, 2020
53054b2
Apply PHP Code Beautifier on source code for linter automatic fixes
ArthurHoaro Sep 22, 2020
b99e00f
Manually fix remaining PHPCS errors
ArthurHoaro Nov 8, 2020
5c856a6
Run PHPCS during Travis CI checks + disable xdebug
ArthurHoaro Nov 9, 2020
2f4df75
Update Static Analysis documentation
ArthurHoaro Nov 9, 2020
1e49a65
Vintage theme: support async metadata retrieval
ArthurHoaro Nov 9, 2020
336f15e
Vintage theme: display global messages
ArthurHoaro Nov 9, 2020
85c09fe
Vintage theme: fix routes in daily page
ArthurHoaro Nov 9, 2020
80c8889
Server admin: do not retrieve latest version without update_check
ArthurHoaro Nov 9, 2020
8affa22
Merge pull request #1628 from ArthurHoaro/fix/nginx-config
ArthurHoaro Nov 10, 2020
325cc8a
Merge pull request #1634 from ArthurHoaro/fix/docker-compose
ArthurHoaro Nov 10, 2020
7e78237
Merge pull request #1630 from ArthurHoaro/fix/apache-config
ArthurHoaro Nov 10, 2020
39b75ea
Merge pull request #1636 from ArthurHoaro/fix/vintage-async-metadata
ArthurHoaro Nov 10, 2020
c94c32d
Merge pull request #1637 from ArthurHoaro/fix/server-admin-update-check
ArthurHoaro Nov 10, 2020
3026627
Merge pull request #1635 from ArthurHoaro/feature/phpcs
ArthurHoaro Nov 10, 2020
5a09b5f
CHANGELOG v0.12.1
ArthurHoaro Nov 12, 2020
a6935fe
Merge pull request #1638 from ArthurHoaro/changelog/v0.12.1
ArthurHoaro Nov 12, 2020
6f9e060
Update badge versions
ArthurHoaro Nov 12, 2020
831e974
Doc: fix missing merge on Release page
ArthurHoaro Nov 12, 2020
150f2a0
Add russian language selection
prog-it Nov 14, 2020
1595d0e
Add russian language file
prog-it Nov 15, 2020
da95024
Merge pull request #1639 from ArthurHoaro/doc/fix-release
ArthurHoaro Nov 15, 2020
51580ef
Merge pull request #1642 from prog-it/master
ArthurHoaro Nov 17, 2020
af16681
WIP: let Travis CI build release archives
nodiscc Oct 22, 2020
485fb9b
travis: install python3-venv
nodiscc Oct 23, 2020
86d4742
makefile: tests target depends on composer_dependencies_dev target
nodiscc Oct 23, 2020
9f2a30e
makefile: add dependencies_dev target (install php/yarn/python3 depen…
nodiscc Oct 23, 2020
867c6be
fix maekfile target
nodiscc Oct 23, 2020
7283ca3
makefile: fix typo
nodiscc Nov 13, 2020
a4212a3
dock: docker: clarify image names
nodiscc Nov 13, 2020
f15e699
doc: Docker: add not about latest/release/vx.y.z release channel in c…
nodiscc Nov 13, 2020
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
43 changes: 12 additions & 31 deletions .docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,13 @@ http {
index index.html index.php;

server {
listen 80;
root /var/www/shaarli;
listen 80;
root /var/www/shaarli;

access_log /var/log/nginx/shaarli.access.log;
error_log /var/log/nginx/shaarli.error.log;

location ~ /\. {
# deny access to dotfiles
access_log off;
log_not_found off;
deny all;
}

location ~ ~$ {
# deny access to temp editor files, e.g. "script.php~"
access_log off;
log_not_found off;
deny all;
}

location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|oet|woff2?)$ {
# cache static assets
expires max;
add_header Pragma public;
Expand All @@ -49,30 +35,25 @@ http {
alias /var/www/shaarli/images/favicon.ico;
}

location /doc/html/ {
default_type "text/html";
try_files $uri $uri/ $uri.html =404;
}

location / {
# Slim - rewrite URLs
try_files $uri /index.php$is_args$args;
# Slim - rewrite URLs & do NOT serve static files through this location
try_files _ /index.php$is_args$args;
}

location ~ (index)\.php$ {
location ~ index\.php$ {
# Slim - split URL path into (script_filename, path_info)
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_split_path_info ^(index.php)(/.+)$;

# filter and proxy PHP requests to PHP-FPM
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}

location ~ /doc/ {
default_type "text/html";
try_files $uri $uri/ $uri.html =404;
}

location ~ \.php$ {
# deny access to all other PHP scripts
deny all;
}
}
}
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@
.dev
.git
.github
.gitattributes
.gitignore
.travis.yml
tests

# Docker related resources are not needed inside the container
.dockerignore
Dockerfile
Dockerfile.armhf

# Docker Compose resources
docker-compose.yml

Expand All @@ -13,6 +21,9 @@ data/*
pagecache/*
tmp/*

# Shaarli's docs are created during the build
doc/html/

# Eclipse project files
.settings
.buildpath
Expand Down
2 changes: 1 addition & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
# Alternative (if the 2 lines above don't work)
# SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

# REST API
# Slim URL Redirection
# Ionos Hosting needs RewriteBase /
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
Expand Down
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,20 @@ matrix:
- pip install mkdocs
script:
- mkdocs build --clean
- language: php
php: 7.4
script:
- sudo apt update && sudo apt install python3-venv
- make release_archive

cache:
directories:
- $HOME/.composer/cache

before_install:
# Disable xdebug: it significantly speed up tests and linter, and we don't use coverage yet
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'

install:
# install/update composer and php dependencies
- composer config --unset platform && composer config platform.php $TRAVIS_PHP_VERSION
Expand All @@ -60,4 +69,5 @@ before_script:
script:
- make clean
- make check_permissions
- make code_sniffer
- make all_tests
5 changes: 4 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
991 ArthurHoaro <[email protected]>
1097 ArthurHoaro <[email protected]>
402 VirtualTam <[email protected]>
294 nodiscc <[email protected]>
56 Sébastien Sauvage <[email protected]>
Expand All @@ -25,6 +25,7 @@
2 Alexandre G.-Raymond <[email protected]>
2 Chris Kuethe <[email protected]>
2 Felix Bartels <[email protected]>
2 Ganesh Kandu <[email protected]>
2 Guillaume Virlet <[email protected]>
2 Knah Tsaeb <[email protected]>
2 Mathieu Chabanon <[email protected]>
Expand All @@ -39,6 +40,7 @@
2 pips <[email protected]>
2 trailjeep <[email protected]>
2 yude <[email protected]>
2 yudete <[email protected]>
1 Adrien Oliva <[email protected]>
1 Adrien le Maire <[email protected]>
1 Alexis J <[email protected]>
Expand All @@ -65,6 +67,7 @@
1 Kevin Masson <[email protected]>
1 Knah Tsaeb <[email protected]>
1 Lionel Martin <[email protected]>
1 Loïc Carr <[email protected]>
1 Mark Gerarts <[email protected]>
1 Marsup <[email protected]>
1 Paul van den Burg <[email protected]>
Expand Down
50 changes: 49 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,55 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [v0.12.1]() - UNRELEASED
## [v0.12.2]() - UNRELEASED

## [v0.12.1](https://github.com/shaarli/Shaarli/releases/tag/v0.12.0) - 2020-11-12

> nginx ([#1628](https://github.com/shaarli/Shaarli/pull/1628)) and Apache ([#1630](https://github.com/shaarli/Shaarli/pull/1630)) configurations have been reviewed. It is recommended that you
> update yours using [the documentation](https://shaarli.readthedocs.io/en/master/Server-configuration/).
> Users using official Docker image will receive updated configuration automatically.

### Added
- Bulk creation of bookmarks
- Server administration tool page (and install page requirements)
- Support any tag separator, not just whitespaces
- Share a private bookmark using a URL with a token
- Add a setting to retrieve bookmark metadata asynchronously (enabled by default)
- Highlight fulltext search results
- Weekly and monthly view/RSS feed for daily page
- MarkdownExtra formatter
- Default formatter: add a setting to disable auto-linkification
- Add mutex on datastore I/O operations to prevent data loss
- PHP 8.0 support
- REST API: allow override of creation and update dates
- Add strict types for bookmarks management

### Changed
- Improve regex and performances to extract HTML metadata (title, description, etc.)
- Support using Shaarli without URL rewriting (prefix URL with `/index.php/`)
- Improve the "Manage tags" tools page
- Use PSR-3 logger for login attempts
- Move utils classes to Shaarli\Helper namespace and folder
- Include php-simplexml in Docker image
- Raise 404 error instead of 500 if permalink access is denied
- Display error details even with dev.debug set to false
- Reviewed nginx configuration
- Reviewed Apache configuration
- Replace vimeo link in demo bookmarks due to IP ban on the demo instance
- Apply PSR-12 on code base, and add CI check using PHPCS

### Fixed
- Compatiliby issue on login with PHP 7.1
- Japanese translations update
- Redirect to referrer after bookmark deletion
- Inject ROOT_PATH in plugin instead of regenerating it everywhere
- Wallabag plugin: minor improvements
- REST API postLink: change relative path to absolute path
- Webpack: fix vintage theme images include
- Docker-compose: fix SSL certificate + add parameter for Docker tag

### Removed
- `config.json.php` new lines in prefix/suffix to prevent issues with Windows PHP

## [v0.12.0](https://github.com/shaarli/Shaarli/releases/tag/v0.12.0) - 2020-10-13

Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RUN apk --update --no-cache add \
php7-openssl \
php7-session \
php7-xml \
php7-simplexml \
php7-zlib \
s6

Expand Down
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ PHPCS := $(BIN)/phpcs
code_sniffer:
@$(PHPCS)

### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend...
PHPCS_%:
@$(PHPCS) --report-full --report-width=200 --standard=$*

### - errors by Git author
code_sniffer_blame:
@$(PHPCS) --report-gitblame
Expand Down Expand Up @@ -65,7 +61,7 @@ check_permissions:
# See phpunit.xml for configuration
# https://phpunit.de/manual/current/en/appendixes.configuration.html
##
test: translate
test: translate composer_dependencies_dev
@echo "-------"
@echo "PHPUNIT"
@echo "-------"
Expand Down Expand Up @@ -180,3 +176,9 @@ eslint:
### Run CSSLint check against Shaarli's SCSS files
sasslint:
@yarn run stylelint --config .dev/.stylelintrc.js 'assets/default/scss/*.scss'

### Install build dependencines from package manager (Debian 10)
dependencies_dev:
sudo apt install composer php-json php-mbstring php-gd php-intl php-curl php-gettext yarnpkg phpunit python3-venv
sudo ln -f -s /usr/bin/yarnpkg /usr/local/bin/yarn

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _It is designed to be personal (single-user), fast and handy._
[![](https://img.shields.io/badge/stable-v0.11.1-blue.svg)](https://github.com/shaarli/Shaarli/releases/tag/v0.11.1)
[![](https://img.shields.io/travis/shaarli/Shaarli/stable.svg?label=stable)](https://travis-ci.org/shaarli/Shaarli)
&bull;
[![](https://img.shields.io/badge/latest-v0.12.0-blue.svg)](https://github.com/shaarli/Shaarli/releases/tag/v0.12.0)
[![](https://img.shields.io/badge/latest-v0.12.1-blue.svg)](https://github.com/shaarli/Shaarli/releases/tag/v0.12.1)
[![](https://img.shields.io/travis/shaarli/Shaarli/latest.svg?label=latest)](https://travis-ci.org/shaarli/Shaarli)
&bull;
[![](https://img.shields.io/badge/master-v0.12.x-blue.svg)](https://github.com/shaarli/Shaarli)
Expand Down
12 changes: 7 additions & 5 deletions application/History.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

namespace Shaarli;

use DateTime;
use Exception;
use Shaarli\Bookmark\Bookmark;
use Shaarli\Helper\FileUtils;

/**
* Class History
Expand All @@ -30,27 +32,27 @@ class History
/**
* @var string Action key: a new link has been created.
*/
const CREATED = 'CREATED';
public const CREATED = 'CREATED';

/**
* @var string Action key: a link has been updated.
*/
const UPDATED = 'UPDATED';
public const UPDATED = 'UPDATED';

/**
* @var string Action key: a link has been deleted.
*/
const DELETED = 'DELETED';
public const DELETED = 'DELETED';

/**
* @var string Action key: settings have been updated.
*/
const SETTINGS = 'SETTINGS';
public const SETTINGS = 'SETTINGS';

/**
* @var string Action key: a bulk import has been processed.
*/
const IMPORT = 'IMPORT';
public const IMPORT = 'IMPORT';

/**
* @var string History file path.
Expand Down
18 changes: 11 additions & 7 deletions application/Languages.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Languages
/**
* Core translations domain
*/
const DEFAULT_DOMAIN = 'shaarli';
public const DEFAULT_DOMAIN = 'shaarli';

/**
* @var TranslatorInterface
Expand Down Expand Up @@ -76,7 +76,8 @@ public function __construct($language, $conf)
$this->language = $confLanguage;
}

if (! extension_loaded('gettext')
if (
! extension_loaded('gettext')
|| in_array($this->conf->get('translation.mode', 'auto'), ['auto', 'php'])
) {
$this->initPhpTranslator();
Expand All @@ -98,7 +99,7 @@ protected function initGettextTranslator()
$this->translator->loadDomain(self::DEFAULT_DOMAIN, 'inc/languages');

// Default extension translation from the current theme
$themeTransFolder = rtrim($this->conf->get('raintpl_tpl'), '/') .'/'. $this->conf->get('theme') .'/language';
$themeTransFolder = rtrim($this->conf->get('raintpl_tpl'), '/') . '/' . $this->conf->get('theme') . '/language';
if (is_dir($themeTransFolder)) {
$this->translator->loadDomain($this->conf->get('theme'), $themeTransFolder, false);
}
Expand All @@ -121,19 +122,21 @@ protected function initPhpTranslator()
$translations = new Translations();
// Core translations
try {
$translations = $translations->addFromPoFile('inc/languages/'. $this->language .'/LC_MESSAGES/shaarli.po');
$translations = $translations->addFromPoFile(
'inc/languages/' . $this->language . '/LC_MESSAGES/shaarli.po'
);
$translations->setDomain('shaarli');
$this->translator->loadTranslations($translations);
} catch (\InvalidArgumentException $e) {
}

// Default extension translation from the current theme
$theme = $this->conf->get('theme');
$themeTransFolder = rtrim($this->conf->get('raintpl_tpl'), '/') .'/'. $theme .'/language';
$themeTransFolder = rtrim($this->conf->get('raintpl_tpl'), '/') . '/' . $theme . '/language';
if (is_dir($themeTransFolder)) {
try {
$translations = Translations::fromPoFile(
$themeTransFolder .'/'. $this->language .'/LC_MESSAGES/'. $theme .'.po'
$themeTransFolder . '/' . $this->language . '/LC_MESSAGES/' . $theme . '.po'
);
$translations->setDomain($theme);
$this->translator->loadTranslations($translations);
Expand All @@ -149,7 +152,7 @@ protected function initPhpTranslator()

try {
$extension = Translations::fromPoFile(
$translationPath . $this->language .'/LC_MESSAGES/'. $domain .'.po'
$translationPath . $this->language . '/LC_MESSAGES/' . $domain . '.po'
);
$extension->setDomain($domain);
$this->translator->loadTranslations($extension);
Expand Down Expand Up @@ -183,6 +186,7 @@ public static function getAvailableLanguages()
'en' => t('English'),
'fr' => t('French'),
'jp' => t('Japanese'),
'ru' => t('Russian'),
];
}
}
Loading