Skip to content

Commit

Permalink
l10n/i18n changes per issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
lafnlab committed Jan 30, 2019
1 parent 0f853d1 commit e130e1d
Show file tree
Hide file tree
Showing 36 changed files with 117 additions and 146 deletions.
6 changes: 1 addition & 5 deletions pub/dash/add-currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a currency");
#$message = 'test message';

// PROCESSING
if (isset($_POST['currsubmit'])) {

Expand Down Expand Up @@ -66,7 +63,6 @@
}

} // if isset $_POST 'currsubmit'

include_once "dash-header.php";
include_once "dash-nav.php";
?>
Expand All @@ -77,7 +73,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a currency"); ?></h4>
<table>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">

Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-eye-color.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add an eye color");
#$message = 'test message';

// PROCESSING
if (isset($_POST['eyesubmit'])) {

Expand Down Expand Up @@ -72,7 +69,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add an eye color"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-gender.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a gender");
#$message = 'test message';

// PROCESSING
if (isset($_POST['gensubmit'])) {

Expand Down Expand Up @@ -72,7 +69,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a gender"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-hair-color.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a hair color");
#$message = 'test message';

// PROCESSING
if (isset($_POST['harsubmit'])) {

Expand Down Expand Up @@ -72,7 +69,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a hair color"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a locale");
#$message = 'test message';

// PROCESSING
if (isset($_POST['i18submit'])) {

Expand Down Expand Up @@ -73,7 +70,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a locale"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-nationality.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a nationality");
#$message = 'test message';

// PROCESSING
if (isset($_POST['natsubmit'])) {

Expand Down Expand Up @@ -72,7 +69,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a nationality"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-place.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a place/location)";
#$message = 'test message';

// PROCESSING
if (isset($_POST['placesubmit'])) {

Expand Down Expand Up @@ -73,7 +70,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a place/location)"; ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
2 changes: 0 additions & 2 deletions pub/dash/add-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@
}

$visitortitle = $usrname;
$pagetitle = _("Add a post");
#$message = 'test message';

// PROCESSING
if (isset($_POST['addpostsubmit'])) {
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-sexuality.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a sexuality");
#$message = 'test message';

// PROCESSING
if (isset($_POST['sxusubmit'])) {

Expand Down Expand Up @@ -72,7 +69,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a sexuality"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-spoken-language.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a spoken language");
#$message = 'test message';

// PROCESSING
if (isset($_POST['spksubmit'])) {

Expand Down Expand Up @@ -72,7 +69,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a spoken language"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/add-time-zone.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@
$max_post_length = $mysiteopt['max_post_length'];
}

$pagetitle = _("Add a time zone");
#$message = 'test message';

// PROCESSING
if (isset($_POST['tztsubmit'])) {

Expand Down Expand Up @@ -75,7 +72,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Add a time zone"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<table>
<tr>
Expand Down
5 changes: 4 additions & 1 deletion pub/dash/dash-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
* since Amore version 0.1
*
*/
if(isset($_COOKIE['loc'])) {
$user_locale = $_COOKIE['loc'];
}

// have Amore use the right localization
// have Amore use the right localization
putenv("LC_MESSAGES=".$user_locale);
setlocale(LC_MESSAGES, $user_locale);

Expand Down
5 changes: 1 addition & 4 deletions pub/dash/edit-currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
}
}

$pagetitle = _("Edit ").$dinname;
#$message = 'test message';

// PROCESSING
if (isset($_POST['currsubmit'])) {

Expand Down Expand Up @@ -88,7 +85,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$dinname; ?></h4>
<table>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="currid" value="<?php echo $dinid; ?>">
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/edit-eye-color.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
}
}

$pagetitle = _("Edit ").$eyecolor._(" eye color");
#$message = 'test message';

// PROCESSING
if (isset($_POST['eyesubmit'])) {

Expand All @@ -76,7 +73,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$eyecolor._(" eye color"); ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="eyeid" value="<?php echo $eyeid; ?>">
<table>
Expand Down
4 changes: 1 addition & 3 deletions pub/dash/edit-gender.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
$genname = $genopt['genders_name'];
}
}
$pagetitle = _("Edit ").$genname;
#$message = 'test message';

// PROCESSING
if (isset($_POST['gensubmit'])) {
Expand All @@ -75,7 +73,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$genname; ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="genid" value="<?php echo $genid; ?>">
<table>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/edit-hair-color.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
}
}

$pagetitle = _("Edit ").$harcolor;
#$message = 'test message';

// PROCESSING
if (isset($_POST['harsubmit'])) {

Expand All @@ -78,7 +75,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$harcolor; ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="harid" value="<?php echo $harid; ?>">
<table>
Expand Down
7 changes: 3 additions & 4 deletions pub/dash/edit-locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@
}

if ($i18ctry != "") {
$pagetitle = _("Edit ").$i18lang."_".$i18ctry;
$pagetitle = $i18lang."_".$i18ctry;
} else {
$pagetitle = _("Edit ").$i18lang;
$pagetitle = $i18lang;
}
#$message = 'test message';

// PROCESSING
if (isset($_POST['i18submit'])) {
Expand Down Expand Up @@ -87,7 +86,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$pagetitle; ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="i18id" value="<?php echo $i18id; ?>">
<table>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/edit-nationality.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
}
}

$pagetitle = _("Edit ").$natname;
#$message = 'test message';

// PROCESSING
if (isset($_POST['natsubmit'])) {

Expand All @@ -77,7 +74,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$natname; ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="natid" value="<?php echo $natid; ?>">
<table>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/edit-place.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
}
}

$pagetitle = _("Edit ").$planame;
#$message = 'test message';

// PROCESSING
if (isset($_POST['placesubmit'])) {

Expand All @@ -81,7 +78,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$planame; ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="placeid" value="<?php echo $plaid; ?>">
<table>
Expand Down
3 changes: 1 addition & 2 deletions pub/dash/edit-profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
}
$objdescription = _("Dashboard for ").$usrname;
$visitortitle = $usrname;
$pagetitle = _("Edit your profile");

// POST FORM SUBMISSION PROCESSING
if (isset($_POST['prosubmit'])) {
Expand Down Expand Up @@ -160,7 +159,7 @@
?>
<article class="w3-col w3-panel w3-cell m8">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit your profile"); ?></h4>
<table>
<form id="editprofile" class="w3-card-2 w3-theme-l3 w3-padding maincard" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]."?uid=".$usrid); ?>">
<tr>
Expand Down
5 changes: 1 addition & 4 deletions pub/dash/edit-sexuality.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
}
}

$pagetitle = _("Edit ").$sexname;
#$message = 'test message';

// PROCESSING
if (isset($_POST['sxusubmit'])) {

Expand All @@ -77,7 +74,7 @@
?>
<article class="w3-col w3-panel w3-cell m9">
<div class="w3-card-2 w3-theme-l3 w3-padding">
<h4><?php echo $pagetitle; ?></h4>
<h4><?php echo _("Edit ").$sexname; ?></h4>
<form id="basicform" method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<input type="hidden" name="sxuid" value="<?php echo $sexid; ?>">
<table>
Expand Down
Loading

0 comments on commit e130e1d

Please sign in to comment.