#7449 closed enhancement (fixed)
"the_content" with translatable "(more)"
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.7 | Priority: | low |
Severity: | trivial | Version: | 2.6 |
Component: | I18N | Keywords: | has-patch |
Focuses: | Cc: |
Description
One user in the german WP forum said, Kubrik is using the german language but it displays the "(more...)" in English. That is because the theme is just using "the_content()" without a parameter.
There are two ways to fix it. One can change the theme file(s), or one can change the functions in "post-template.php" (s. the attachment). What would you guys prefer?
Attachments (2)
Change History (6)
#1
follow-up:
↓ 2
@
15 years ago
- Component changed from General to i18n
- Keywords has-patch added
- Version set to 2.6
Just uploaded what's a better patch IMO. Allows for a blank "more" link, a better test, and cleaner code.
#2
in reply to:
↑ 1
;
follow-up:
↓ 3
@
14 years ago
- Owner changed from anonymous to westi
- Status changed from new to assigned
Replying to Viper007Bond:
Just uploaded what's a better patch IMO. Allows for a blank "more" link, a better test, and cleaner code.
Patch looks good.
Why do we need the code in the_content when it calls get_the_content can't we just do the NULL check in one place? (or is there something I'm missing here?)
#3
in reply to:
↑ 2
@
14 years ago
Replying to westi:
Replying to Viper007Bond:
Just uploaded what's a better patch IMO. Allows for a blank "more" link, a better test, and cleaner code.
Patch looks good.
Why do we need the code in the_content when it calls get_the_content can't we just do the NULL check in one place? (or is there something I'm missing here?)
No, you're correct. I just was following the original reporter's ticket and not paying attention. Passing "NULL" to get_the_content()
should work fine.
Better patch IMO