Comments (3)
Some outstanding issues:
- I'm not sure where do these come from, but all the strings in the post edit metabox under the Focus Keyword field where it says "You focus keyword was found in: Article Heading: Yes (1), Page Title: No, etc." <-- all of these are not translatable. Can't find them in the source code.
This is generated via jquery in js/wp-seo-metabox.js at line 90. The server will need to handle this in order for translation to work
- The three strings for keyword usage check introduced in v1.4.5 in file /admin/class-metabox.php at lines 1232, 1234, and 1236
if ( count( $posts ) == 0 )
$this->save_score_result( $results, 9, __( "You've never used this focus keyword before, very good." ), 'keyword_overused' );
else if ( count( $posts ) == 1 )
$this->save_score_result( $results, 6, sprintf( __( 'You\'ve used this focus keyword %1$sonce before%2$s, be sure to make very clear which URL on your site is the most important for this keyword.' ), '<a href="' . admin_url( 'post.php?post=' . $posts[0] . '&action=edit' ) . '">', '</a>' ), 'keyword_overused' );
else
$this->save_score_result( $results, 1, sprintf( __( 'You\'ve used this focus keyword %3$s%4$d times before%2$s, it\'s probably a good idea to read %1$sthis post on cornerstone content%2$s and improve your keyword strategy.' ), '<a href="http://yoast.com/cornerstone-content-rank/">', '</a>', '<a href="' . admin_url( 'edit.php?seo_kw_filter=' . urlencode( $job['keyword'] ) ) . '">', count( $posts ) ), 'keyword_overused' );
I think this just means changing the namespace from 'keyword_overused' to 'wordpress-seo'
- The SEO score strings (i.e. bad, poor, etc.) which appear when hovering over the colored circle image in various areas (in Publish metabox, table listings, admin bar). I think the code for those is scattered across a coupe of files? Not sure though, because sometimes they are capitalized (e.g. "Poor") and other times they are just small caps (e.g. "poor")
This is defined in inc/wpseo-non-ajax-functions.php function wpseo_translate_score(). I set the translation string here, but a few of the outputs gets passed to ucfirst afterwards which capitalizes the first letter. Not sure how well ucfirst plays with translated string though.
from wordpress-seo.
- for the JS strings there is this stuff.
- "I think this just means changing the namespace from 'keyword_overused' to 'wordpress-seo' " - correct. Please do.
- Let's make them all capitalized the same way if possible, makes translation easier, and make sure they're translated everywhere.
from wordpress-seo.
In the line
$this->save_score_result( $results, 9, __( "You've never used this focus keyword before, very good." ), 'keyword_overused' );
it doesn't look like keyword_overused being the namespace. I think it should be changed into:
$this->save_score_result( $results, 9, __( 'You've never used this focus keyword before, very good.', 'wordpress-seo' ), 'keyword_overused' );
from wordpress-seo.
Related Issues (20)
- Sitemap not rendering on Chrome 123 HOT 1
- Refactor website specific scriptdata to its own object
- Hebi HOT 1
- Anchors don't work properly when copying/pasting HOT 5
- Prev/Next links include the slug twice when using Query Loop block on non-homepage content HOT 3
- Fatal Error on New WordPress Update and New Yoast Update HOT 2
- Missing filter for og:image:type HOT 3
- Cleanup post/term data from editors classes
- canonical-presenter hook removes final slash in URL if URL contains a period HOT 1
- TEST
- Compatibility issue between custom RSS feeds and Yoast SEO category prefix setting HOT 3
- Missing availability schema HOT 5
- Please add the %%currentmonth%% and %%currentyear%% Variables back HOT 1
- Yoast creating redirect for the front page. HOT 1
- Remove unused translation script data
- Missing pagination page numbers in blog page breadcrumbs HOT 1
- RSS feeds cause fatal error with missing/invalid user HOT 1
- Option to Paste on the description fields are not showing on the right-click menu HOT 9
- Compatibility issue with Easy Digital Downloads Software Licensing since v20.4 HOT 5
- Add integration test to date archive builder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-seo.