Development

#653 (Ref ticket #639)

You must first sign up to be able to contribute.

Ticket #653 (closed defect: invalid)

Opened 7 years ago

Last modified 7 years ago

Ref ticket #639

Reported by: anonymous Assigned to:
Priority: minor Milestone: 0.6.3
Component: Version: 0.7.X
Keywords: Cc:
Qualification:

Description

Please refer ticket #639. As you asked for an example, I am sending you the code samples. Please give me a solution for this. And please let me know the options to send replies to you. Because each time I am creating new tickets. Can I send replies from my mail itself? or Is there any option to send replies from my same ticket itself.

actions.class.php
=================
class itemActions extends sfActions
{
  public function executeIndex()
  {
    //add to db
    $item->setVcitem($this->getRequestParameter('item'));			
    $item->save();
    $this->getRequest()->setError('message', "Item added successfully");
    return sfView::SUCCESS;
  }
}

template.php
============
{
   <?php use_helper('I18N') ?>
   <?php echo form_tag('item/index') ?>
   <?php echo $sf_request->getError('message') ?>
   <?php echo __('Item Name: ') ?>
   <?php echo input_tag('item', $firstnamejp) ?>
   <?php echo submit_tag(__('add'));?>
}

messages.en.xml
===============
{
<?xml version="1.0" ?>
<xliff version="1.0">
  <file orginal="global" source-language="ja_JP" datatype="plaintext" date="2004-12-28T18:10:19Z">
    <body>
      <trans-unit id="1">
        <source>Item added successfully.</source>
        <target>Item added successfully. TRANSLATED</target>
      </trans-unit>
      <trans-unit id="2">
        <source>Item Name:</source>
        <target>Item Name TRANSLATED:</target>
      </trans-unit>
      <trans-unit id="1">
        <source>add</source>
        <target>addTRANSLATED</target>
      </trans-unit>
    </body>
  </file>
</xliff>
}

Change History

06/22/06 13:06:58 changed by fabien

  • status changed from new to closed.
  • resolution set to invalid.

You message in the XML is "Item added successfully." but in your error, you put "Item added successfully"

As you can see, this is not the same string (notice the . at the end of the source message).

You can discuss your problems on the mailing-list. Ticket comments are disabled for now due to spam.