Skip to content

Commit

Permalink
Uppercase for de locale Fix #1261
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Jul 12, 2024
1 parent 642356d commit 3715382
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions tarteaucitron.js
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,12 @@ var tarteaucitron = {
nbCurrent = 0,
html = '',
i,
status = document.cookie.indexOf(key + '=true');
status = document.cookie.indexOf(key + '=true'),
cookieLabel = "cookie";

if (tarteaucitron.getLanguage() === "de") {
cookieLabel = "Cookie";
}

if (status >= 0 && nb === 0) {
html += tarteaucitron.lang.useNoCookie;
Expand All @@ -1934,7 +1939,7 @@ var tarteaucitron = {
}

if (nbCurrent > 0) {
html += tarteaucitron.lang.useCookieCurrent + ' ' + nbCurrent + ' cookie';
html += tarteaucitron.lang.useCookieCurrent + ' ' + nbCurrent + ' ' + cookieLabel;
if (nbCurrent > 1) {
html += 's';
}
Expand All @@ -1945,7 +1950,7 @@ var tarteaucitron = {
} else if (nb === 0) {
html = tarteaucitron.lang.noCookie;
} else {
html += tarteaucitron.lang.useCookie + ' ' + nb + ' cookie';
html += tarteaucitron.lang.useCookie + ' ' + nb + ' ' + cookieLabel;
if (nb > 1) {
html += 's';
}
Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.min.js

Large diffs are not rendered by default.

0 comments on commit 3715382

Please sign in to comment.