Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final spanish #1

Closed
wants to merge 15 commits into from
Closed

Final spanish #1

wants to merge 15 commits into from

Conversation

spekulatius
Copy link
Collaborator

Let's work on this here.

@netlify
Copy link

netlify bot commented Aug 11, 2022

Deploy Preview for phpscraper-de ready!

Name Link
🔨 Latest commit 71d00a5
🔍 Latest deploy log https://app.netlify.com/sites/phpscraper-de/deploys/63093e7a7333e20008b034c4
😎 Deploy Preview https://deploy-preview-1--phpscraper-de.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@@ -25,7 +25,7 @@ Este proyecto está patrocinado por:

<a href="https://bringyourownideas.com" target="_blank" rel="noopener noreferrer"><img src="https://bringyourownideas.com/images/byoi-logo.jpg" height="100px"></a>

¿Quieres patrocinar este proyecto? [Póngase en contacto conmigo](https://peterthaleikis.com/contact).
¿Quieres patrocinar este proyecto? [Escríbeme](https://peterthaleikis.com/contact).
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Escríbeme" or "Escríbe me" @walirazzaq ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check it again. I think Deepl might have combined it 🤦🏼I'll try to cross verify it on some other translation services as well 👍🏼

@@ -21,12 +21,12 @@ $web = new \spekulatius\phpscraper();
/**
* Navegue hasta la página de pruebas. Contiene:
*
* <title>¡Estamos probando aquí!</title>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are fixed in the test pages and we can't translate them, can you double check we are good with German too for this?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, I think we would need to revert them for de as well. I would do it first as we are having de version live as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's alright - just fix it for DE and ES here. It isn't a big problem

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've found some more places like this, have a look at the comments :)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Onto that
I have understood it and will fix them all, together 👍🏼

* ]
*
* @Note:
* Double because it's twice the same image:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can translate these notes tho :)

@@ -23,23 +23,22 @@ $web->go('https://test-pages.phpscraper.de/meta/lorem-ipsum.html');
* <title>Lorem Ipsum</title>
*/

// Obtener el título. Esto debería devolver:
// "Lorem Ipsum"
// Fetch the title. This will return: "Lorem Ipsum"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we undid the comment translation here

websites/.vuepress/config.js Show resolved Hide resolved
/**
* $content ahora contiene:
*
* [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you replace this print out with the English version in DE/ES?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am also looking for all such places where we need to use English only 👍🏼

@@ -21,12 +21,12 @@ $web = new \spekulatius\phpscraper();
/**
* Navegue hasta la página de pruebas. Contiene:
*
* <title>¡Estamos probando aquí!</title>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's alright - just fix it for DE and ES here. It isn't a big problem

```php
$web = new \spekulatius\phpscraper();

/**
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

/**
* $content ahora contiene:
*
* [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

/**
* Navegue hasta la página de prueba. Contiene 6 enlaces a placekitten.com con diferentes atributos:
*
* <h2>Diferentes formas de envolver los atributos</h2>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use the English for this part too until the next $web command

$web->go('https://test-pages.phpscraper.de/links/target.html');

// Imprime el número de enlaces.
echo "This page contains " . count($web->links) . " links.\n\n";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use "Esta página contiene X enlaces." from below

/**
* Navegue hasta la página de prueba. Esta página contiene varios enlaces con diferentes atributos rel. Para ahorrar espacio sólo el primero:
*
* <a href="https://placekitten.com/432/287" rel="nofollow">gatito externo</a>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

*
* [
* 'url' => 'https://placekitten.com/432/287',
* 'text' => 'gatito externo',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text won't change, the rest is fine

/**
* Navega hasta la página de la prueba. Contiene:
*
* <title>Gato &amp; ratón</title>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct too

*/
$web->go('https://test-pages.phpscraper.de/meta/html-entities.html');

// Imprime el título: "Gato & Ratón"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct too

```

::: tip CONSEJO
Se han tenido en cuenta las entidades y los caracteres especiales en toda la biblioteca. Si encuentra un lugar donde no funcionan como se espera, por favor, plantee un [problema].(https://github.com/spekulatius/PHPScraper/issues).
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

].( => ](

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the dot should be after only

@walirazzaq
Copy link
Owner

@spekulatius
I have made the changes in de and es translations and also kept them in mind while translating fr version.
Pushed the changes to respective branches as well.
Previews: final-spanish and french

Review the French translations especially first-level headings under APIs/

Cheers

@spekulatius
Copy link
Collaborator Author

Cool, thank you!

@spekulatius spekulatius deleted the final-spanish branch August 26, 2022 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants