Comments (12)
Bernhard,
Thanks for your feedback and support of this project. I agree with you,
language
translation would be a nice addition. I will leave this in the issue queue for
further consideration.
In the meantime, if you implement at setLanguage method on your local copy,
feel free
to send it to me. I will gladly include this in future releases and give you
credit
in the source code.
Thanks,
Andrew
Original comment by [email protected]
on 11 Feb 2010 at 7:28
from php-form-builder-class.
I've though about this request off and on for the past few days and decided
that
language translation is not an area I want to pursue at this time. It's an
added
complexity that I feel is unnecessary. Unfortunately, this means that you will
have to
run the same search and replace commands each time you download and install a
new
release of this project.
Thanks again for your feedback and support of this project,
Anrew
Original comment by [email protected]
on 16 Feb 2010 at 5:39
- Changed state: WontFix
from php-form-builder-class.
I wanted to mention that the latest version release - 1.0.2 - has two form
attributes (errorMsgFormat and
emailErrorMsgFormat) that can be used to format the error message that are
returned.
Original comment by [email protected]
on 27 Mar 2010 at 6:28
from php-form-builder-class.
Original comment by [email protected]
on 12 Apr 2010 at 5:02
- Changed state: Accepted
- Added labels: Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from php-form-builder-class.
The fields should also be multilanguage: by example the True/False or Yes/No
fields.
In all there is no much translation required, I have about 10 or 15 items.
I don't see the complexity in this, add a folder "translations" to the project
with a
subfolder for every ISO language that is supported, by example en, fr, de, ...
That folder should contain a class.form.php file with defines for the correct
constants. In your class you use the constants instead of the hardcoded english
labels.
Then there should be a parameter for the form where you can set the language. By
example: language => 'en'. By default you hardcode it in english (en), unless
the
parameter given is checked succesfully for an existng translation file.
I can deliver dutch (nl) translations if you want to proceed with this.
Original comment by [email protected]
on 3 Jun 2010 at 2:59
from php-form-builder-class.
Thanks for your suggestion. Feel free to provide the dutch translations. If
you would like, you can integrate your
constants idea directly into class.form.php. You can checkout a current
snapshot of the working copy by running
the following command...
svn checkout http://php-form-builder-class.googlecode.com/svn/trunk/
php-form-builder-class
Original comment by [email protected]
on 3 Jun 2010 at 3:15
from php-form-builder-class.
Apparantly it is more complicated than that. If I'm not mistaking, the js.php
and
css.php did not exist in the previous version I'm using and I did not encounter
this
issue before.
The issue I have now is residing within the js.php file. It initiates a new
instance
of the class.form.php file so this would mean that the language should be saved
in
the serialised class session variable
Original comment by [email protected]
on 3 Jun 2010 at 3:36
from php-form-builder-class.
The js.php/css.php implementation was introduced in the 1.0.4 version release
to accomodate xhtml strict compliance. Basically, the js/css
needed for a specific form is loaded into external files instead of being
dumped into the body tag alongside the form's html markup.
The serialization/un-serialization of the the class session variable is already
handled for you near the bottom of the elementsToString() function
(which is invoked within the render() function).
Please let me know if you have any further questions on the inner workings of
the project.
Original comment by [email protected]
on 3 Jun 2010 at 5:39
from php-form-builder-class.
[deleted comment]
from php-form-builder-class.
I would like to use PFBC in portuguese and I'm thinking in use gettext and
contribute it to the project. Any drawback related to this?
Best regards,
Carlos.
Original comment by [email protected]
on 20 Mar 2012 at 12:44
from php-form-builder-class.
I agree with this issue, all texts should really be grouped somewhere ...
I'd like to use this class on multilingual websites and it's quite silly to
have to duplicate ALL source code and manually search for every texts for every
language ...
Not to mention that it has to be done again if we want to upgrade your script
...
Original comment by conort
on 22 Nov 2012 at 9:37
from php-form-builder-class.
I suppose you could wrap the form attributes (errorMsgFormat and
emailErrorMsgFormat) values within gettext. I have not tried this but there
should be no harm.
As long as the class keeps the same form attribute names, then your gettext
values should not have an issue upon upgrading the class.
Original comment by [email protected]
on 3 Nov 2014 at 6:13
from php-form-builder-class.
Related Issues (20)
- Default value for a radio button HOT 2
- add custom ajax
- Submitting Obejcts as JSON strings instead of traditional POST
- Error Submit Ajax form
- Form Builder Class Submit Button - No Value HOT 8
- Multiple Select - Multiple values not showing as pre-selected HOT 1
- Update to Bootstrap 3 HOT 4
- Doesn't update if Google Spreadsheet Column Name is a Number
- send and receive data to-from mysql db
- javascript load multiple times in pfbc(PHP Form Builder Class - Imavex) HOT 1
- Element Select and text value
- Radio buttons HOT 2
- Bootstrap 3 support
- Nginx ajax file upload error HOT 1
- How to add selected="selected" on Select with PFBC 3.1? HOT 3
- How to compare two elements's values (e.g. password / password new)
- How to compare user entered element value with DB content?
- accentuation on the placeholder
- Custom CSS
- Having a multiple default in a Multiple Select
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-form-builder-class.