Skip to content

Commit

Permalink
1.1.2; added French, Luxembourgish, and Finnish translations
Browse files Browse the repository at this point in the history
  • Loading branch information
joho1968 committed Feb 21, 2023
1 parent 97a8bdd commit 5c7960d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.2] - 2023-02-21

### Added

- Added Luxembourgish (lb) translation (#2); thank you Alain Fontaine
- Added French (fr) translation (#3); thank you Alain Fontaine
- Added Finnish (fi) translation (PR#3); thank you Thomas Raehalme

## [1.1.1] - 2023-01-23

### Added
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Please note that `index.html` makes use of `password-om.min.css` by default.

### Translation

The (very) few strings can be translated. The distribution contains strings in English (default), Swedish, German, and Dutch. The code attempts to guess the language from the **navigator.language** properties. If they do not exist, or cannot be interpreted, the fallback language used is English.
The (very) few strings can be translated. The distribution contains strings in English (default), Swedish, German, Dutch, Finnish, French, and Luxembourgish. The code attempts to guess the language from the **navigator.language** properties. If they do not exist, or cannot be interpreted, the fallback language used is English.

The "string setup" is done in the `POM_initialSetup()` function.

Expand All @@ -77,6 +77,8 @@ If you would like to contribute to the translation, please open an issue and pos

Thanks to **Peter Hampf** (hello `O/T-Track` :metal:) for the German translation :blush:
Thanks to **Jeroen van de Leur** for the Dutch translation :blush:
Thanks to **Alain Fontaine** for the French and Luxembourgish translations :blush:
Thanks to **Thomas Raehalme** for the Finnish translations :blush:

The "cloud icon" comes from [Streamline](https://streamlinehq.com)

Expand Down
12 changes: 9 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<meta name="description" content="Slumpmässigt Lösenord" lang="sv">
<meta name="description" content="Zufallsgenerator für Passwörter" lang="de">
<meta name="description" content=“Willekeurig Wachtwoordgenerator" lang=“nl">
<meta name="description" content=“Zoufallspasswuertgenerator" lang=“lb">
<meta name="description" content=“Générateur de mot de passe au hazard" lang=“fr">
<meta name="description" content="Salasanageneraattori" lang="fi">
<meta name="keywords" content="password generator,random password,lösenord,slumpmässigt lösenord,öppet moln,öppen källkod">
<meta name="author" content="Joaquim Homrighausen">
<meta name="generator" content="POMjs">
Expand All @@ -14,7 +17,10 @@
<title lang="en">POMjs - Random Password Generator</title>
<title lang="sv">POMjs - Slumpmässigt Lösenord</title>
<title lang="de">POMjs - Zufallsgenerator für Passwörter</title>
<title lang=“nl">POMjs - Willekeurig Wachtwoordgenerator</title>
<title lang=“nl">POMjs - Willekeurig Wachtwoordgenerator</title>
<title lang=“lb">POMjs - Zoufallspasswuertgenerator</title>
<title lang=“fr">POMjs - Générateur de mot de passe au hazard</title>
<title lang=“fi">POMjs - Salasanageneraattori</title>
<link media="all" rel="stylesheet" href="css/normalize.min.css" />
<link media="all" rel="stylesheet" href="css/password-om.css" />
<meta name="robots" content="index,nofollow">
Expand Down Expand Up @@ -45,7 +51,7 @@
<script defer src="js/password-om.min.js" type="text/javascript" id="password-om"></script>
</head>
<!--
POMjs 1.1.1
POMjs 1.1.2
Plain vanilla javascript for the "Öppet Moln" ("Open Cloud") random
password generator site (password.oppetmoln.se). For the sake of having
Expand Down Expand Up @@ -150,8 +156,8 @@ <h2 id="cfg-page-slogan"></h2>
You may, or may not, want to display this. If you put this up
on your own website, please be sure to change the content
accordingly, thank you.
-->
<p id="gen-hosted-by">Website hosted by <span style="display:inline-block"><a href="https://www.webbplatsen.se" target="_blank" tabindex="-1">WebbPlatsen i Sverige AB</a></span></p>
-->
<p><small>POMjs by Joaquim Homrighausen, <span style="display:inline-block">get it at <a href="https://github.com/joho1968/POMjs" target="_blank" tabindex="-1">GitHub</a> (GPLv2)</span></small></p>
<p id="gen-timestamp"></p>
</footer>
Expand Down
20 changes: 19 additions & 1 deletion js/password-om.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* POMjs 1.1.1
* POMjs 1.1.2
*
* password-om.js
*
Expand Down Expand Up @@ -338,6 +338,24 @@ function POM_initialSetup() {
POM_cfgSlogan = 'Geen cookies, <span style="display:inline-block">geen trackers.</span><br/>Uitsluitend wachtwoorden.';
POM_cfgGenPasswordHint = 'Genereer wachtwoord';
break;
case 'lb':
/* Thank you Alain Fontaine */
POM_cfgTitle = 'Zoufallspasswuertgenerator';
POM_cfgSlogan = 'Keng Cookien, <span style="display:inline-block">keng Trackeren.</span><br/>Nemme Passwierder.';
POM_cfgGenPasswordHint = 'Passwuert genereieren';
break;
case 'fr':
/* Thank you Alain Fontaine */
POM_cfgTitle = 'Générateur de mot de passe au hazard';
POM_cfgSlogan = 'Pas de cookies, <span style="display:inline-block">pas de traceurs.</span><br/>Juste des mots de passe.';
POM_cfgGenPasswordHint = 'Générer mot de passe';
break;
case 'fi':
/* Thank you Thomas Raehalme */
POM_cfgTitle = 'Salasanageneraattori';
POM_cfgSlogan = 'Ei evästeitä, <span style="display:inline-block">ei seurantaa.</span><br/>Vain salasanoja.';
POM_cfgGenPasswordHint = 'Generoi salasana';
break;
default:
POM_cfgTitle = 'Random Password Generator';
POM_cfgSlogan = 'No cookies, <span style="display:inline-block">no trackers.</span><br/>Just passwords.';
Expand Down
Loading

0 comments on commit 5c7960d

Please sign in to comment.