Hi all here.
I'm sorry if my idea is duplicated, but i searched such module and such module idea and didn't find it.
So i've developed new module for drupal and want to add it on drupal.org, to appear as drupal.org/project/mymodule. Please help me with this. I'll describe the module below.
We have many orders for drupal sites and very often that drupal sites has to be multilanguage. And all clients asked for better things to allow easy translate of strings and text messages on the site. Usual drupal translate interface is very hard for clients and too hard to edit many text. There is module to import/export to .po file, but often you don't know where this message will be used and can translate it wrong.
So idea was to create something easy to help them. My module show small popup, which allow you to turn on quick translate mode on the page. When you do that - it highlight all text messages, which can be translatable (printed with drupal t() function). When you click on this message - you see the popup where you can enter translations to all languages installed in the system.
It's very easy to use for clients - just install and enable. Then open any page - and you can translate words, text messages etc.
| Attachment | Size |
|---|---|
| Quick Translate popup (on mode) | 94.15 KB |
| Translate text label | 100.96 KB |
| Quick Translate popup (off mode) | 90.67 KB |

Comments
Reading your post I'll see
Reading your post I'll see that you want your module to be added to the Drupal repository. Great! Manual translation is time consuming.
To get your module visibile on drupal.org as contributed module you need to ask a cvs account.
The procedure is good described in: http://drupal.org/node/7765
Make sure that you read all requirements good on http://drupal.org/cvs-application/requirements
I'll hope you also port your module for D7. Note that before applying for a cvs account you have used coder to make sure your module follows the Drupal coding standards.
CVS Account
Mike provided some good info. The only thing I'd add is that it can take a few weeks for approval (I'm still waiting). To help things go faster, I'd recommend that you provide as much information as possible in your motivation statement and include whatever information that could make it easy for someone to review your module. It's a community effort, so the time for approval can vary a lot.
http://cleaver.ca
Great thanks guys for your
Great thanks guys for your help and advices.
don't think who you are - know you are!
Great Idea
Great Idea for a module! I too hope it gets approved and I will be using it ASAP as I am making a site for English, Chinese and Korean. I never understood why the translate module didn't do this already, or have it done in core. Everything to be translated is already wrapped in a t() function, so why didn't the have it that when an option is turned on, like I assume yours does, all the text in t() functions gets a <a> link wrapper around them to link to the translate interface in a popup window?
Would be good to have an option to have it off, have it only link untranslated text, have it link text that isn't translated in XYZ language, and have it link all text translated/untranslated. Would make it SOOO much easier to translate.
The module has been developed
The module has been developed already. We're testing it on our ongoing projects now. Also i'm writing article about it with user manual etc and it will be published in few days on our site with download link for those who want join testing this module and write his opinions and comments. I'll be appreciated if you check it with Chinese and Korean charsets. There can be some issues with special charaters or something else.
I'll post the link here as soon as i finish all this stuff.
don't think who you are - know you are!
btw, guys. about this
btw, guys.
about this one:
"Note that before applying for a cvs account you have used coder to make sure your module follows the Drupal coding standards."
what coder i should use? i'm new here, so i don't know anyone in this community. I'm the developer for many years and the code is commented good, drupal hooks used to create menus, custom pages and themes. what else should be checked?
don't think who you are - know you are!
Hi @aprokopenko, the "Coder"
Hi @aprokopenko,
the "Coder" is a module that checks your code for compliance with Drupal coding standards. You can find it here http://drupal.org/project/coder
Nice module ;)
and one more question: under
and one more question:
under "3rd party libraries in Drupal CVS" post i found that i can't include libraries in my module.
my module used different javascript (jquery) libraries such as base64, serialize, cookie etc. can i include them? i think it's hard for users to download some scripts to make the module works.
btw. simple menu module has superfish menu jquery script inside.
can you advice?
don't think who you are - know you are!
Take a look at
Take a look at http://drupal.org/node/145950 and maybe there is an easy solution or you can look at how others have dealt with this issue. I also run into this issue and noticed that the review guidelines are much stricter that several modules I'll see. Users letting downloading libraries separate is not user friendly. And the reason we build modules is to give functionality easy to use for everyone.
So for non programmers and people not familiar with unix command line and ftp commands.
Using github or another non-drupal repository can not be the intention of the cvs-projects maintainer. So far I'll have not found a generic solution in Drupal for dealing with OSS 3rd party libraries. And the result is that every module maintainer resolves this issues different. But in the end when using serveral modules all have the same libraries under /modules/specificmodulename/lib
Maybe the reviewer of your module will give an usefull hint for how to deal with this issue.
No, please place common
No, please place common libraries under sites/all/libraries/LIBRARY-NAME; this is fast becoming the defacto. Otherwise we get into difficulties when multiple modules want to access the same third party library.
Aaron Winborn
Drupal Multimedia (my book, available now!)
AaronWinborn.com
Advomatic
about access: i'm checking
about access: i'm checking all libraries already included on the page and do not include twice. this is done with js. because you never know what scripts used with other modules and they can be included more than once. not all modules use sites/all/libraries/ file structure, so i need to check they are included in any case (otherwise there can be js errors and my module wont work at all).
but how user should download the module and 3rd party libraries at once? module package should contain only module files and if there are no javascript required there - there is no sense in this module! you need to find libraries and upload it somewhere. i never do that with any modules i downloaded from repository. they always contain all scripts inside. but i understand that they can duplicate and this is the problem.
If we want make general file structure we need the mechanizm to download required libraries from repository automatically when you activate module. (But now drupal can't do this feature)
or i need to make package with such structure:
/modules/my-module
/libraries/required libraries?
please advice
don't think who you are - know you are!
If you don't want to let your
If you don't want to let your users download the scripts manually, you could try to request that missing plug-ins are added to the jQuery plugins project. However, since that module seems slightly unmaintained, I would simply point your users to the correct download location. I know this sounds unsatisfying, but there seems currently no better way.
No, your .module file needs to reside in the root directory. It is not possible to access directories "above" your own module directory.
-Stefan
Re: about acess: i'm checking
I have seen quite a few modules that need libraries, or to have files downloaded and unpacked in the module's directory (which I guess is bad). If I remember right, a lot of the modules that deal with providing MP3 player interface or that read MP3 file tags need libraries that you have to use. When you install such modules, but don't have the libraries downloaded, admin is told on every admin page that the enabled module is missing the library and gives a link to download it. The module also prevents a user from continuing to configure it until the library files can be found.
Also, in regards to code, while there is the coder module, there is also http://drupal.org/coding-standards for coding standards.
so i need to add feature to
so i need to add feature to upload js libraries automatically if they do not exists?
(and provide links to download if there are no permissions to upload them on the server)
can i use my own server to provide links for sources (or maybe some 3d party solutions like Dropbox)? this will garantee that user will download correct files and module will work good.
don't think who you are - know you are!
Have you considered expanding
Have you considered expanding on the existing http://drupal.org/project/l10n_client? Ignore me if there's an obvious difference between your goal and theirs.
Huh, i search something like
Huh, i search something like that but could find this by myself. Yes this is not bad module too and the idea is very similar to my module.
But there are main difference in our modules - localization client module shows all text on the page. On some sites i did such feature, but there are too many strings and it was very very hard to find the exact string.
My module works shows translations for individual string for all languages at once by clicking on the string you want to translate. It's much easier.
But thanks anyway for your recomendations.
don't think who you are - know you are!
Status?
I'm wondering what the status of this module is? I don't see it on drupal.org, so I'm assuming it wasn't contributed. The UI does seem a bit more user-friendly than the Localization client module.
Kristen
Contact: https://www.hook42.com/contact
Drupal 7 Multilingual Sites: http://www.kristen.org/book
Hi Kristen, I don't have time
Hi Kristen,
I don't have time to validate it and post to drupal.org finally. But I have shared it on our company web-site.
The latest version i have can be downloaded from the link above:
http://justcoded.com/implementation/drupal-quick-translate/
don't think who you are - know you are!