';
- $html.= '| Name | ';
- $html.= 'displayName | ';
- $html.= 'Id | ';
- $html.= 'OwnerName | ';
- $html.= 'State | ';
- $html.= 'connectionStatus | ';
- $html.= 'Type | ';
+ $html.= ''.$langs->trans('GCP_Name').' | ';
+ $html.= ''.$langs->trans('GCP_displayName').' | ';
+ $html.= ''.$langs->trans('GCP_Id').' | ';
+ $html.= ''.$langs->trans('GCP_OwnerName').' | ';
+ $html.= ''.$langs->trans('GCP_State').' | ';
+ $html.= ''.$langs->trans('GCP_connectionStatus').' | ';
+ $html.= ''.$langs->trans('GCP_Type').' | ';
$html.= ''.$langs->trans("Select").' | ';
$html.= '
'."\n";
$list = $this->getlist_available_printers();
diff --git a/htdocs/core/modules/printing/printipp.modules.php b/htdocs/core/modules/printing/printipp.modules.php
index 5252341c2d3..7f789b859eb 100644
--- a/htdocs/core/modules/printing/printipp.modules.php
+++ b/htdocs/core/modules/printing/printipp.modules.php
@@ -131,16 +131,16 @@ class printing_printipp extends PrintingDriver
$var=true;
$html = '';
$html.= '';
- $html.= '| Uri | ';
- $html.= 'Name | ';
- $html.= 'State | ';
- $html.= 'State_reason | ';
- $html.= 'State_reason1 | ';
- $html.= 'BW | ';
- $html.= 'Color | ';
- //$html.= 'Device | ';
- $html.= 'Media | ';
- $html.= 'Supported | ';
+ $html.= ''.$langs->trans('IPP_Uri').' | ';
+ $html.= ''.$langs->trans('IPP_Name').' | ';
+ $html.= ''.$langs->trans('IPP_State').' | ';
+ $html.= ''.$langs->trans('IPP_State_reason').' | ';
+ $html.= ''.$langs->trans('IPP_State_reason1').' | ';
+ $html.= ''.$langs->trans('IPP_BW').' | ';
+ $html.= ''.$langs->trans('IPP_Color').' | ';
+ //$html.= ''.$langs->trans('IPP_Device').' | ';
+ $html.= ''.$langs->trans('IPP_Media').' | ';
+ $html.= ''.$langs->trans('IPP_Supported').' | ';
$html.= ''.$langs->trans("Select").' | ';
$html.= "
\n";
$list = $this->getlist_available_printers();
@@ -153,14 +153,14 @@ class printing_printipp extends PrintingDriver
$html.= ''.$value.' | ';
//$html.= ''.print_r($printer_det,true).' | ';
$html.= ''.$printer_det->printer_name->_value0.' | ';
- $html.= ''.$printer_det->printer_state->_value0.' | ';
- $html.= ''.$printer_det->printer_state_reasons->_value0.' | ';
- $html.= ''.$printer_det->printer_state_reasons->_value1.' | ';
- $html.= ''.$printer_det->printer_type->_value2.' | ';
- $html.= ''.$printer_det->printer_type->_value3.' | ';
+ $html.= ''.$langs->trans('STATE_IPP_'.$printer_det->printer_state->_value0).' | ';
+ $html.= ''.$langs->trans('STATE_IPP_'.$printer_det->printer_state_reasons->_value0).' | ';
+ $html.= ''.(! empty($printer_det->printer_state_reasons->_value1)?$langs->trans('STATE_IPP_'.$printer_det->printer_state_reasons->_value1):'').' | ';
+ $html.= ''.$langs->trans('IPP_COLOR_'.$printer_det->printer_type->_value2).' | ';
+ $html.= ''.$langs->trans('IPP_COLOR_'.$printer_det->printer_type->_value3).' | ';
//$html.= ''.$printer_det->device_uri->_value0.' | ';
$html.= ''.$printer_det->media_default->_value0.' | ';
- $html.= ''.$printer_det->media_type_supported->_value1.' | ';
+ $html.= ''.$langs->trans('MEDIA_IPP_'.$printer_det->media_type_supported->_value1).' | ';
// Defaut
$html.= '';
if ($conf->global->PRINTIPP_URI_DEFAULT == $value)
diff --git a/htdocs/langs/en_US/printgcp.lang b/htdocs/langs/en_US/printgcp.lang
index 9751649a738..ded5fb63d6e 100644
--- a/htdocs/langs/en_US/printgcp.lang
+++ b/htdocs/langs/en_US/printgcp.lang
@@ -16,3 +16,10 @@ TYPE_DRIVE=Google Drive
TYPE_FEDEX=Fedex
TYPE_ANDROID_CHROME_SNAPSHOT=Android
TYPE_IOS_CHROME_SNAPSHOT=IOS
+GCP_Name=Name
+GCP_displayName=Display Name
+GCP_Id=Printer Id
+GCP_OwnerName=Owner Name
+GCP_State=Printer State
+GCP_connectionStatus=Online State
+GCP_Type=Printer Type
diff --git a/htdocs/langs/en_US/printipp.lang b/htdocs/langs/en_US/printipp.lang
index 2a10ddfe710..e85d53627c4 100644
--- a/htdocs/langs/en_US/printipp.lang
+++ b/htdocs/langs/en_US/printipp.lang
@@ -15,3 +15,23 @@ NoDefaultPrinterDefined=No default printer defined
DefaultPrinter=Default printer
Printer=Printer
CupsServer=CUPS Server
+IPP_Uri=Printer Uri
+IPP_Name=Printer Name
+IPP_State=Printer State
+IPP_State_reason=State reason
+IPP_State_reason1=State reason1
+IPP_BW=BW
+IPP_Color=Color
+IPP_Device=Device
+IPP_Media=Printer media
+IPP_Supported=Type of media
+STATE_IPP_idle=Idle
+STATE_IPP_stopped=Stopped
+STATE_IPP_paused=Paused
+STATE_IPP_toner-low-report=Low Toner
+STATE_IPP_none=None
+MEDIA_IPP_stationery=Stationery
+MEDIA_IPP_thermal=Thermal
+IPP_COLOR_print-black=BW Printer
+IPP_COLOR_print-color=Color Printer
+IPP_COLOR_=No
|