| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 4631|Reply: 4
Collapse the left

Something wrong with "Edited by"

[Copy link]
Post time: 2012-07-04 00:04
| Show all posts |Read mode
Edited by kaaleth at 2012-7-4 12:57

Hello guys. As you know, I am translating X2.5, but I found something wrong. When user is editing own posts, system automatically is adding info about post editing (who and when), but it adding some new lines <br /> too.

Look at this photo.


  1. Edited by test at 2012-07-04 04:56 \n\nhehaeheahea hae  hea
Copy the Code

How to delete this \n\n ? In post editor I have



Any idea? I must do some fix in \pl\forum\lang_misc.php BUT witn English translation it works fine...

This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 Russia

Post time: 2012-07-04 07:11
| Show all posts
Try to edit this file: forum/lamg_mic.php
line 33:
  1.         'post_edit'                        => '[i=s] Edited by {editor} at {edittime} \n\n',//"[i=s] 本帖最后由 {editor} 于 {edittime} 编辑 \n\n",

  2. Try to replace single apostrophs with double quotes like this:

  3.         'post_edit'                        => "[i=s] Edited by {editor} at {edittime} \n\n",//"[i=s] 本帖最后由 {editor} 于 {edittime} 编辑 \n\n",
Copy the Code

 Russia

Post time: 2012-07-04 07:21
| Show all posts
I think there exists a great bug in processing the "Edited" mark.
It is a BAD idea to handle the national words in the code.
For example, what will happen if a user edited a post en Polish firs, and then again in English?
Yes, you are right, this tag will NOT be found and processed....

It would be nice to create a new special tag [edited=time] that will be the same in all the languages.

Or yet another idea - add a new post fields "edit_time" and "edited_by", and totally remove the "Edited by" tag from the content...

 Russia

Post time: 2012-07-04 07:41
| Show all posts
Quotes fixed in lang repo.
 Author| Post time: 2012-07-04 13:48
| Show all posts
Thanks for fix. Now is ok.
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-05-04 00:33 GMT+3 , Processed in 0.055134 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list