# Sendy in foreign language

**URL:** <https://www.ruby-forum.com/t/sendy-in-foreign-language/244356>\
**Category:** NGINX\
**Created:** [March 26, 2016, 12:35pm UTC](https://www.ruby-forum.com/t/sendy-in-foreign-language/244356 "2016-03-26T12:35:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [March 26, 2016, 12:35pm UTC](https://www.ruby-forum.com/t/sendy-in-foreign-language/244356/1 "2016-03-26T12:35:55Z")

</div>

I have Sendy running fine on a Debian box and served by Nginx. I have  
installed French language files to enable Sendy to operate in French.  
This  
works perfectly under Apache on my local computer but not on the  
production  
site with Nginx. Sendy uses gettext so this should be fairly standard to  
get  
working. The Sendy forum has some suggestions on getting translations to  
work and I have followed these without success. I’ve had a discussion  
with  
Ben on this forum which is online here:  
[https://sendy.co/forum/messages/5445#24416](https://sendy.co/forum/messages/5445#24416)

I don’t want to be forced to use Apache as Ben suggests. So I’d be  
eternally  
grateful if anyone can see how to get this working on Nginx.

Here is my server configuration which I downloaded via the Sendy forum:

Server {  
listen 80;  
listen [::]:80;

```
server_name example.com;

autoindex off;
index index.php index.html;

root /var/www/example.com/public_html;
access_log /var/www/example.com/log/access.log;
error_log /var/www/example.com/log/error.log;

location / {
    try_files $uri $uri/ $uri.php?$args;
}

location /l/ {
    rewrite ^/l/([a-zA-Z0-9/]+)$ /l.php?i=$1 last;
}

location /t/ {
    rewrite ^/t/([a-zA-Z0-9/]+)$ /t.php?i=$1 last;
}

location /w/ {
    rewrite ^/w/([a-zA-Z0-9/]+)$ /w.php?i=$1 last;
}

location /unsubscribe/ {
    rewrite ^/unsubscribe/(.*)$ /unsubscribe.php?i=$1 last;
}

location /subscribe/ {
    rewrite ^/subscribe/(.*)$ /subscribe.php?i=$1 last;
}

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
}

location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
    access_log off;
    log_not_found off;
    expires 30d;
}

```

}

Posted at Nginx Forum:

> **[Sendy in foreign language](https://forum.nginx.org/read.php?2,265666,265666#msg-265666)**
>
> I have Sendy running fine on a Debian box and served by Nginx. I have installed French language files to enable Sendy to operate in French. This works perfectly under Apache on my local computer but not on the production site with Nginx. Sendy uses...

---

<div class="post-metadata">

**Author:** ![edtaa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/13edae/32.png) [@edtaa](https://www.ruby-forum.com/u/edtaa)\
**Post date:** [March 26, 2016, 11:12pm UTC](https://www.ruby-forum.com/t/sendy-in-foreign-language/244356/2 "2016-03-26T23:12:39Z")

</div>

have you seen or tested this module?

> **[Accept Language Module | NGINX](https://www.nginx.com/resources/wiki/modules/accept_language/)**
>
> The Accept Language module parses the Accept-Language field in HTTP headers to choose the most suitable locale for the user.

Posted at Nginx Forum:

> **[Re: Sendy in foreign language](https://forum.nginx.org/read.php?2,265666,265669#msg-265669)**
>
> I have Sendy running fine on a Debian box and served by Nginx. I have installed French language files to enable Sendy to operate in French. This works perfectly under Apache on my local computer but not on the production site with Nginx. Sendy uses...
