Hi,

I've found a bug in a complex situation...
Following are the steps to reproduce it:

- Install a clean Drupal 6.20 environment
- Enable the following core modules (Administer/Site building/Modules):
  - Content Translation + Locale
- Add a language (Administer/Site configuration/Languages/Add language)
  - Italian
- Edit the English language to add the path prefix: en

- Install and enable the following modules:
  - Chaos tool suite 6.x-1.8                            --> http://drupal.org/project/ctools
    - Enable: Chaos tools
  - Views 6.x-3.x-dev                                   --> http://drupal.org/project/views
    - Enable: Views + Views UI
  - Internationalization (i18n 6.x-1.9)                 --> http://drupal.org/project/i18n
    - Enable: Content type translation + Internationalization + String translation + Taxonomy translation
  - Internationalization Views (i18nviews 6.x-3.x-dev)  --> http://drupal.org/project/i18nviews
    - Enable: Views translation

- Setup multilanguage (Site configuration/Languages/Configure)
  - Language negotiation: Path prefix with language fallback.

- Setup the language switcher block (Site building/Blocks):
  - Set the language switcher on the Footer region

- Edit the Page content type (Content management/Content types)
  - Workflow settings - Multilingual support: Enabled, with translation

- Create the following page content (Create content):
  - Title: Test page 1
  - Body: Body of Test page 1
- Translate it to Italian (Translate/Add translation):
  - Title: Test pagina 1
  - Body: Corpo del test pagina 1

- Create the following view (Site building/Views/Add):
  - View name: Test
  - Add the following fields:
    - Node: Edit link
      - Exclude from display: Yes
    - Node: Body
      - Exclude from display: Yes
    - Node: Title
      - Exclude from display: Yes
      - Rewrite the output of this field: Yes
      - Text: [title] [body]
    - Node: Title
      - Label: empty
      - Rewrite the output of this field: Yes
      - Text: [title] - ORIGINAL
      - Link this field to its node: No
  - Add the following filter:
    - Node translation: Language
      - Is one of --> Current user's language
- Add a page display
  - Path: test
  - Menu: Normal menu entry
    - Title: test

- Refresh views strings (Site building/Translate interface/Refresh)
  - Select text groups: Views
  - Press "Refresh strings" button
- Search the view field (Site building/Translate interface/Search)
  - String contains: [
  - Limit search to: Views
- Edit the string found ([title] - ORIGINAL) in order to add a translation
  - Italian: [title] - TRANSLATED

Now navigate to the frontpage and choose the test page from the navigation menu. It will show the only content present in the current path language.
It should be something like the following in english:

Test page 1

Body of Test page 1
- ORIGINAL

Then change the current language by clicking on the language switcher at the bottom.
It show something like the following in italian:

Test pagina 1 - TRANSLATED - TRANSLATED

Which is not correct !

Comments

Anybody’s picture

Status: Active » Closed (outdated)