I'm making a module for D6 that sets the default language when creating a node (User language, Interface language, Language neutral, ...). The Module is almost finished, but I first want to make a SimpleTest.

But I'm stuck because I can't figure out how to:

  • Add different languages when starting the test.
  • Change the default site language.
  • Change the user language.

Is there a SimpleTest API somewhere? I went through most of the tutorials on d.o and lullabot, but these seem to cover only the basics.

CommentFileSizeAuthor
#8 drupal-5.23.oc_.po415.61 KBCedric31
#4 oc.po845.89 KBCedric31

Comments

boombatower’s picture

Status: Active » Postponed (maintainer needs more info)

There is not. So you need to goto the pages in the interface and set up everything as you would do manually. For a guide take a look at the D7 language related tests.

alduya’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Thank you. It works now. Everything gets tested as it should.
Once I knew I had to program SimpleTest to follow the steps I would do manually myself it all went Simple.

Cedric31’s picture

Version: 6.x-2.9 » 7.x-2.x-dev
Component: Documentation » User interface
Status: Closed (works as designed) » Needs work
StatusFileSize
new845.89 KB

Hi !
Here's the beginning of the translation a did for occitan language.
Can it be added to oficial list ?
Best regards

avpaderno’s picture

Version: 7.x-2.x-dev » 6.x-2.9
Component: User interface » Documentation
Status: Needs work » Closed (works as designed)

SimpleTest doesn't maintain a list of official languages used by Drupal.

Cedric31’s picture

How can I do so ?
Can't I give my work to the comunity ?
Cédric Valmary

avpaderno’s picture

This is the wrong issue queue for this kind of tasks/support requests. Apart that, your translation file contains lines like

msgid "Welcome (no approval required)"
msgstr ""

when it should contains lines like the following ones, taken from the Esperanto translation file:

msgid "Home"
msgstr "Hejmo"
Cedric31’s picture

StatusFileSize
new415.61 KB

Is this one good ?