Quantcast
Channel: PirateBox Forum - PirateBox OpenWrt
Viewing all articles
Browse latest Browse all 3254

Re: How to edit html page?

$
0
0
Hi kenogo,
no need for the confusion. We did a major change in the release 1.1

First:
You are right, everything is now inside the "content" folder. The Content folder is also available on your USB Stick. So, you can edit the files offline on your computer. On the direct folder /opt/piratebox/www you only have technical content now.

Second:
You are wondering about the language. We have an autotranslated web-GUI based on your browser's settings. This happens via JavaScript. Every textbox is now marked with an additional id, like
data-l10n-id="footerInspired". The content inside the <p> tag is the fallback language, afaik.
The real text is pulled off the folder locales/data.$language.properties , like data.de.properties . If you want to adjust the text, you need to do it there.
But you can also remove the locale translation by removing the corresponding JS script line in index.html
Language: PHP
<script type="text/javascript" src="/content/js/l10n.js"></script>
It is pretty transparent.


Be careful, If you generate a 404, you end up with a redirect loop.

Viewing all articles
Browse latest Browse all 3254

Trending Articles