Gossamer Forum
Home : Products : DBMan SQL : Discussion :

[Language fix] GT lib Language fix in forms (Downdrop menus in forms are displayed in your language)

Quote Reply
[Language fix] GT lib Language fix in forms (Downdrop menus in forms are displayed in your language)
I created a modification of GT library v3.2.0, so you can use your translated text in forms, where downdrop menu lists the following items:
Like, Exact Match, Not Equal, Greater Than, Like, Less Than

Modified files:
admin/GT/SQL/Display/HTML.pm

Added files:
admin/GT/App.pm
admin/GT/Language.pm

IMPORTANT! Before you apply the attached fix, you should backup file:
admin/GT/SQL/Display/HTML.pm


You need to edit and add the following parts into language.txt in used template dir:
Code:
'FORM_EXACT_MATCH' => 'Exact Match',
'FORM_NOT_EQUAL' => 'Not Equal',
'FORM_GREATER_THAN' => 'Greater Than',
'FORM_LIKE' => 'Like',
'FORM_LESS_THAN' => 'Less Than',
You can also add these language tags, using the
Admin/Build/User Language editor
or
Admin/Templates/User Language editor


The language elements are changed to your language in this form:
Code:
<select name="Levels-opt">
<option value="LIKE">Like</option>
<option value="=">Exact Match</option>
<option value="<>">Not Equal</option>
<option value="&gt;">Greater Than</option>
<option value="&lt;">Less Than</option>
</select>


This fix was tested in DBManSQL v2.1.0, using GT library from LinksSQL v3.2.0.
It will likely work only, if you use the latest GT app having version v3.2.0, or if you copy GT library (v3.2.0) from LinksSQL into your app (before you apply this fix).


The attached GT Language fix is not tested in details, so use it for your responsibility.

Please notify me of any problems you find.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...

Last edited by:

webmaster33: Jan 21, 2008, 4:12 AM
Subject Author Views Date
Post [Language fix] GT lib Language fix in forms (Downdrop menus in forms are displayed in your language) webmaster33 2112 Jan 21, 2008, 4:03 AM