This repository has been archived by the owner. It is now read-only.

I18n checker

Vivien Lacourba edited this page Jul 20, 2016 · 24 revisions

Nginx + FastCGI

How to install the W3C Internationalization Checker locally to be used as a Validator Suite assertor (see the application.assertor.i18n-checker.url Validator Suite configuration parameter).

Install

On Debian/Ubuntu based systems.

Commands to run as root user (or using sudo)

apt-get install git nginx nginx-light php5-fpm php5-intl php5-curl php5-tidy
cd ~validator
git clone https://github.com/w3c/i18n-checker
chown www-data:validator i18n-checker/logs

# PHP-FPM
cp PATH_TO_VALIDATOR_SUITE/conf/i18n-checker/etc/php5/fpm/pool.d/www.conf /etc/php5/fpm/pool.d/
vi /etc/nginx/fastcgi_params
# Add the following line to that file:
#  fastcgi_param  SCRIPT_FILENAME    $request_filename;
service php5-fpm restart

# Nginx
cp PATH_TO_VALIDATOR_SUITE/conf/i18n-checker/etc/nginx/sites-available/i18n-checker /etc/nginx/sites-available/
cd /etc/nginx/sites-enabled/
rm default
ln -s /etc/nginx/sites-available/i18n-checker .
service nginx restart

Test

PHP-FPM Status page

GET 'http://localhost:11010/fpm/status'

I18n Checker

GET 'http://localhost:11010/check.php?uri=http://www.w3.org&format=xml'

Documentation

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.