Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impact of switching from lowercase to uppercase first character #50

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Page Title translation capabilities. Switched to the ampersand html e…
…ntity

I'm saying capabilities because there are too many pages and I can't add
all the translation terms to the domain files at this moment. Some are
going to be picked up because they already exist in the domain files,
though.
I had to enter the ampersand html entity name in order for it to be
displayed correctly.
It's taking into consideration the space before and after that I found
in almost all of the page titles class properties.
  • Loading branch information
ReactorShop committed Nov 4, 2016
commit 00b0aeec8a58eadcdd6735a4568a7aacdf6e11f8
4 changes: 2 additions & 2 deletions inoerp/extensions/comment/class.comment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class comment extends dbObject {
'comment_user_name',
'subscribe_cb'
];
public $pageTitle = " Comment - Create & View different Comments ";
public $pageTitle = " Comment - Create & View Different Comments ";
public $search = [
'_view_path' => 'form.php?class_name=',
'_show_view_path' => 1,
Expand Down Expand Up @@ -501,4 +501,4 @@ class comment extends dbObject {
}

//end of comment class
?>
?>
4 changes: 2 additions & 2 deletions inoerp/extensions/comment/class_extn_comment.inc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class extn_comment extends dbObject {
'comment_user_name',
'subscribe_cb'
];
public $pageTitle = " Comment - Create & View different Comments ";
public $pageTitle = " Comment - Create & View Different Comments ";
public $search = [
'_view_path' => 'form.php?class_name=',
'_show_view_path' => 1,
Expand Down Expand Up @@ -515,4 +515,4 @@ class extn_comment extends dbObject {
}

//end of comment class
?>
?>
4 changes: 2 additions & 2 deletions inoerp/extensions/convertToProd/class_extn_convertToProd.inc
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ class extn_convertToProd extends dbObject {
'pm_process_operation_detail',
'pm_formula_byproduct',
];
public $pageTitle = " Conver to Production "; //page Title
public $pageTitle = " Convert to Production "; //page Title
public $convertToProd_id;
public $message;
public $convert_to_prod_mode;
Expand Down Expand Up @@ -619,4 +619,4 @@ AND table_type = 'BASE TABLE'
}

//end of path class
?>
?>
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class user_activity_v extends dbObject {
public $initial_search = [
'item_number',
];
public $pageTitle = " Forecast activity "; //page Title
public $pageTitle = " Forecast Activity "; //page Title
public $search_functions = [
'Organization' => 'search_org_name',
'Forecast ' => 'search_forecast_name',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class user_dashboard_v extends dbObject {
public $initial_search = [
'item_number',
];
public $pageTitle = " Forecast dashboard "; //page Title
public $pageTitle = " Forecast Dashboard "; //page Title
public $search_functions = [
'Organization' => 'search_org_name',
'Forecast ' => 'search_forecast_name',
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/demo_user/reset_password.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

$pageTitle = " User - Create & Update all Users ";
$pageTitle = " User - Create &amp; Update all Users ";
$view_path = "user_view";
?>
<?php include_once('../../includes/basics/header_public.inc'); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class user_activity_v extends dbObject {
'content_type',
];

public $pageTitle = " User activity "; //page Title
public $pageTitle = " User Activity "; //page Title

public $content_id;
public $content_type_id;
Expand Down
4 changes: 2 additions & 2 deletions inoerp/extensions/ino_user/reset_password.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$pageTitle = " User - Create & Update all Users ";
$pageTitle = " User - Create &amp; Update all Users ";
$view_path = "user_view";
require_once __DIR__.'/../../includes/basics/basics.inc';
?>
Expand Down Expand Up @@ -61,4 +61,4 @@
if (!empty($message)) {
echo '<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>' . $message;
}
?></div>
?></div>
2 changes: 1 addition & 1 deletion inoerp/extensions/page/class_page.inc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class page extends dbObject {
];
public $requiredField = ["content"
];
public $pageTitle = " Content - Create & View different contents ";
public $pageTitle = " Content - Create &amp; View Different Contents ";
public $search = [
'_show_update_path' => 1,
'_update_action_meassge' => 'Update',
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/page/view/class_page_view.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class page_view extends dbObject {
];
public $requiredField = ["content"
];
public $pageTitle = " Content - Create & View different contents ";
public $pageTitle = " Content - Create &amp; View Different Contents ";
public $search = [
'_show_update_path' => 1,
'_update_action_meassge' => 'Update',
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/user/activity/class_user_activity_v.inc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class user_activity_v extends dbObject {
'content_type',
];

public $pageTitle = " User activity "; //page Title
public $pageTitle = " User Activity "; //page Title

public $content_id;
public $content_type_id;
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/user/reset_password.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
$pageTitle = " User - Create & Update all Users ";
$pageTitle = " User - Create &amp; Update all Users ";
$view_path = "user_view";
require_once __DIR__.'/../../includes/basics/basics.inc';
?>
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/view/old_view/view_path/view_path.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$extension = 'view_path';
$key_field = 'column_name';
$primary_column = "view_path_id";
$pageTitle = " View - Create & update view path ";
$pageTitle = " View - Create &amp; Update View Path ";
$required_field_flag = 1;
?>
<?php include_once("../../../include/basics/header.inc"); ?>
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/view/old_view/view_path/view_paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$sql = $_GET['sql'];
}

$viewTitle = " View - Create & update $view_type_name ";
$viewTitle = " " . gettext('View') . " - " . gettext('Create &amp; Update') . ' ' . gettext(trim($view_type_name)) . " ";
$extension = "view";
$key_field = "view";
$primary_column = "view_id";
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/view/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$extension = 'view';
$key_field = 'view';
$primary_column = "view_id";
$pageTitle = " View - Create & update view ";
$pageTitle = " View - Create &amp; Update View ";
$required_field_flag = 1;
include_once("../../include/basics/header.inc");

Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/view/view_path/view_path.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$extension = 'view_path';
$key_field = 'column_name';
$primary_column = "view_path_id";
$pageTitle = " View - Create & update view path ";
$pageTitle = " View - Create &amp; Update View Path ";
$required_field_flag = 1;
?>
<?php include_once("../../../include/basics/header.inc"); ?>
Expand Down
2 changes: 1 addition & 1 deletion inoerp/extensions/view/view_path/view_paths.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$sql = $_GET['sql'];
}

$viewTitle = " View - Create & update $view_type_name ";
$viewTitle = " " . gettext('View') . " - " . gettext('Create &amp; Update') . ' ' . gettext(trim($view_type_name)) . " ";
$extension = "view";
$key_field = "view";
$primary_column = "view_id";
Expand Down
2 changes: 1 addition & 1 deletion inoerp/includes/basics/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (!empty($dont_check_login)) {
<meta name="robots" content="noindex">
<meta name="description" content="inoERP - A Open Source PHP/C++ based Enterprise Management System">
<meta name="keywords" content="ERP,PHP ERP,Open Source ERP ">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo THEME_URL;
echo (!empty($content_class))? '/content_layout.css' : '/layout.css' ?>" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo THEME_URL; ?>/public.css" media="all" rel="stylesheet" type="text/css" />
Expand Down
4 changes: 2 additions & 2 deletions inoerp/includes/basics/header_find.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo HOME_URL; ?>themes/layout.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>themes/public.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>themes/menu.css" media="all" rel="stylesheet" type="text/css" />
Expand All @@ -20,4 +20,4 @@
<body>
<div id="main_find">

<? ob_flush(); ?>
<? ob_flush(); ?>
2 changes: 1 addition & 1 deletion inoerp/includes/basics/header_public.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ check_browser(); ?>
}
?>
<meta name="keywords" content="ERP,PHP ERP,Open Source ERP ">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo HOME_URL; ?>/themes/default/public.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>/themes/default/menu.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>/themes/default/jquery.css" media="all" rel="stylesheet" type="text/css" />
Expand Down
4 changes: 2 additions & 2 deletions inoerp/includes/basics/header_simple.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo HOME_URL; ?>themes/print.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
Expand All @@ -17,4 +17,4 @@
die("You dont have access to this page! : ");
}
?>
<? ob_flush(); ?>
<? ob_flush(); ?>
2 changes: 1 addition & 1 deletion inoerp/includes/basics/search_page.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
?>
<meta name="keywords" content="ERP,PHP ERP,Open Source ERP ">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo THEME_URL; ?>/public.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo THEME_URL; ?>/menu.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo THEME_URL; ?>/jquery.css" media="all" rel="stylesheet" type="text/css" />
Expand Down
2 changes: 1 addition & 1 deletion inoerp/includes/basics/select_page.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
?>
<meta name="keywords" content="ERP,PHP ERP,Open Source ERP ">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php
// echo THEME_URL;
// echo (!empty($content_class)) ? '/content_layout.css' : '/layout.css'
Expand Down
2 changes: 1 addition & 1 deletion inoerp/includes/basics/xxxheader.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if (!empty($dont_check_login)) {
<meta name="robots" content="noindex">
<meta name="description" content="inoERP - A Open Source PHP/C++ based Enterprise Management System">
<meta name="keywords" content="ERP,PHP ERP,Open Source ERP ">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo THEME_URL;
echo (!empty($content_class))? '/content_layout.css' : '/layout.css' ?>" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo THEME_URL; ?>/public.css" media="all" rel="stylesheet" type="text/css" />
Expand Down
4 changes: 2 additions & 2 deletions inoerp/includes/basics/xxxheader_find.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo HOME_URL; ?>themes/layout.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>themes/public.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>themes/menu.css" media="all" rel="stylesheet" type="text/css" />
Expand All @@ -20,4 +20,4 @@
<body>
<div id="main_find">

<? ob_flush(); ?>
<? ob_flush(); ?>
4 changes: 2 additions & 2 deletions inoerp/includes/basics/xxxheader_simple.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo HOME_URL; ?>themes/print.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
Expand All @@ -17,4 +17,4 @@
die("You dont have access to this page! : ");
}
?>
<? ob_flush(); ?>
<? ob_flush(); ?>
4 changes: 2 additions & 2 deletions inoerp/includes/functions/loader.inc
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,9 @@ if ($readonly) {


if (($class == 'content') && (!empty($content->subject))) {
$pageTitle = $content->subject;
$pageTitle = ' ' . gettext(trim($content->subject)) . ' ';
} else if (is_object($$class)) {
$pageTitle = property_exists($$class, 'pageTitle') ? $$class->pageTitle : 'inoERP';
$pageTitle = property_exists($$class, 'pageTitle') ? ' ' . gettext(trim($$class->pageTitle)) . ' ' : 'inoERP';
}


Expand Down
2 changes: 1 addition & 1 deletion inoerp/includes/general_class/class_inoform.inc
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class inoform {
'user_group_access',
'wip_accounting_group'
];
public $pageTitle = " inoFrom - All Forms "; //page Title
public $pageTitle = " inoForm - All Forms "; //page Title
public $option_lists = [
// 'supplier_type' => 'SUPPLIER_TYPE',
];
Expand Down
2 changes: 1 addition & 1 deletion inoerp/includes/template/header_public.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ check_browser(); ?>
}
?>
<meta name="keywords" content="ERP,PHP ERP,Open Source ERP ">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo HOME_URL; ?>/themes/default/public.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>/themes/default/menu.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>/themes/default/jquery.css" media="all" rel="stylesheet" type="text/css" />
Expand Down
4 changes: 2 additions & 2 deletions inoerp/includes/template/header_simple.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<title><?php echo isset($pageTitle) ? ' ' . gettext(trim($pageTitle)) . ' ' . ' - inoERP!' : ' inoERP! ' ?></title>
<link href="<?php echo HOME_URL; ?>themes/print.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
Expand All @@ -17,4 +17,4 @@
die("You dont have access to this page! : ");
}
?>
<? ob_flush(); ?>
<? ob_flush(); ?>
4 changes: 2 additions & 2 deletions inoerp/includes/template/json_form_template.inc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
$pageTitle = $$class->pageTitle;

if (!empty($pageTitle)) {
echo "<div id='page_title' >$pageTitle</div>";
echo "<div id='page_title' >" . ' ' . gettext(trim($pageTitle)) . ' ' . "</div>";
} else {
echo "<div id='page_title' ></div>";
}
Expand Down Expand Up @@ -96,4 +96,4 @@
echo '</div>';
}
?>
</div>
</div>
Binary file modified inoerp/locale/ar_SA/LC_MESSAGES/messages.mo
Binary file not shown.
20 changes: 19 additions & 1 deletion inoerp/locale/ar_SA/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15739,4 +15739,22 @@ msgid "System Generated"
msgstr "System Generated"

msgid "New Entry"
msgstr "New Entry"
msgstr "New Entry"

msgid "Create New Record"
msgstr "Create New Record"

msgid "Search To Select"
msgstr "Search To Select"

msgid "Requisition - Purchasing"
msgstr "Requisition - Purchasing"

msgid "Select value of"
msgstr "Select value of"

msgid "Specifications"
msgstr "Specifications"

msgid "Option - Create &amp; Update Different Options and Values"
msgstr "Option - Create &amp; Update Different Options and Values"
Binary file modified inoerp/locale/de_DE/LC_MESSAGES/messages.mo
Binary file not shown.
20 changes: 19 additions & 1 deletion inoerp/locale/de_DE/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15737,4 +15737,22 @@ msgid "System Generated"
msgstr "System Generated"

msgid "New Entry"
msgstr "New Entry"
msgstr "New Entry"

msgid "Create New Record"
msgstr "Create New Record"

msgid "Search To Select"
msgstr "Search To Select"

msgid "Requisition - Purchasing"
msgstr "Requisition - Purchasing"

msgid "Select value of"
msgstr "Select value of"

msgid "Specifications"
msgstr "Specifications"

msgid "Option - Create &amp; Update Different Options and Values"
msgstr "Option - Create &amp; Update Different Options and Values"
Binary file modified inoerp/locale/docs/English_Spanish.xlsx
Binary file not shown.
Binary file modified inoerp/locale/en_US/LC_MESSAGES/messages.mo
Binary file not shown.
Loading